Skip to content

Commit

Permalink
api: Do not need Expect header.
Browse files Browse the repository at this point in the history
Expect header is not support and implemented by GCS
and some S3 endpoints. Remove it as it doesn't add
much purpose.
  • Loading branch information
minio-trusted committed Apr 4, 2017
1 parent fd94228 commit 752aa1c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 752aa1c

Please sign in to comment.