-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove redirector for S3 API calls (#1601)
S3 APIs behave in non-standard style not following HTTP spec for redirections Refer here https://github.com/aws/aws-sdk-go/blob/main/service/s3/s3manager/bucket_region.go#L117 ``` // Disable HTTP redirects to prevent an invalid 301 from eating the response // because Go's HTTP client will fail, and drop the response if an 301 is // received without a location header. S3 will return a 301 without the // location header for HeadObject API calls. req.DisableFollowRedirects = true ``` Fixes the issue minio/minio#13918
- Loading branch information
1 parent
ef709cf
commit 52ffedf
Showing
1 changed file
with
5 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters