From 752aa1c2ecc6a6f2eaca5824c32ca21173265864 Mon Sep 17 00:00:00 2001 From: Minio Trusted Date: Tue, 4 Apr 2017 16:30:36 -0700 Subject: [PATCH] api: Do not need Expect header. Expect header is not support and implemented by GCS and some S3 endpoints. Remove it as it doesn't add much purpose. --- api.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api.go b/api.go index e971721a94..d5821c0143 100644 --- a/api.go +++ b/api.go @@ -625,14 +625,6 @@ func (c Client) newRequest(method string, metadata requestMetadata) (req *http.R return req, nil } - // 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 - if !s3utils.IsGoogleEndpoint(c.endpointURL) && c.s3AccelerateEndpoint == "" { - // Set 'Expect' header for the request. - req.Header.Set("Expect", "100-continue") - } - // Set 'User-Agent' header for the request. c.setUserAgent(req)