From 0d03b7838f738da5506c0a394c4239bf65c5dfd5 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 26 May 2015 18:03:06 -0700 Subject: [PATCH] Update to new changes in minio-go related to userAgent --- Godeps/Godeps.json | 2 +- .../src/github.com/minio/minio-go/low_level_request.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index a63d392a..26584a66 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -32,7 +32,7 @@ }, { "ImportPath": "github.com/minio/minio-go", - "Rev": "c68bb5b2c7a043c0769c5ef902e1a1c1572d52a3" + "Rev": "388953f651449b2f1dd6d5b489ff2e6afbe7b901" }, { "ImportPath": "github.com/minio/minio/pkg/iodine", diff --git a/Godeps/_workspace/src/github.com/minio/minio-go/low_level_request.go b/Godeps/_workspace/src/github.com/minio/minio-go/low_level_request.go index 3f3f711c..7047f712 100644 --- a/Godeps/_workspace/src/github.com/minio/minio-go/low_level_request.go +++ b/Godeps/_workspace/src/github.com/minio/minio-go/low_level_request.go @@ -72,8 +72,8 @@ func newRequest(op *operation, config *Config, body io.ReadSeeker) (*request, er return nil, err } - // if userAgent empty do not set it - if config.userAgent != "" { + // if userAgent empty set it + if config.userAgent == "" { config.userAgent = LibraryName + "/" + LibraryVersion + " (" + runtime.GOOS + ", " + runtime.GOARCH + ") " }