diff --git a/vendor/github.com/minio/minio-go/api.go b/vendor/github.com/minio/minio-go/api.go index 8bcdc0d7..a21c40e8 100644 --- a/vendor/github.com/minio/minio-go/api.go +++ b/vendor/github.com/minio/minio-go/api.go @@ -588,7 +588,7 @@ func (c Client) newRequest(method string, metadata requestMetadata) (req *http.R } // Initialize a new HTTP request for the method. - req, err = http.NewRequest(method, targetURL.String(), metadata.contentBody) + req, err = http.NewRequest(method, targetURL.String(), nil) if err != nil { return nil, err } @@ -608,6 +608,11 @@ func (c Client) newRequest(method string, metadata requestMetadata) (req *http.R return req, nil } + // Set content body if available. + if metadata.contentBody != nil { + req.Body = ioutil.NopCloser(metadata.contentBody) + } + // FIXME: Enable this when Google Cloud Storage properly supports 100-continue. // Skip setting 'expect' header for Google Cloud Storage, there // are some known issues - https://github.com/restic/restic/issues/520 diff --git a/vendor/vendor.json b/vendor/vendor.json index 410334fd..55b946c6 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -50,10 +50,10 @@ "revisionTime": "2015-10-24T22:24:27-07:00" }, { - "checksumSHA1": "InJ8MZLIDbv2KJk2tiyHUHOuRHE=", + "checksumSHA1": "rLcqRbRw+5GWQnL9fuvvVvlMCjo=", "path": "github.com/minio/minio-go", - "revision": "7a3619e41885dcbcfafee193c10eb80530c2be53", - "revisionTime": "2017-02-17T20:03:45Z" + "revision": "d64c0f6ad35d282c21af6f3d735d07ce7ac579e3", + "revisionTime": "2017-03-09T20:51:21Z" }, { "checksumSHA1": "qTxOBp3GVxCC70ykb7Hxg6UgWwA=",