s3: stop the S3 library doing path cleaning to use keys called "." #4704

This commit is contained in:
Nick Craig-Wood 2020-10-27 17:37:31 +00:00
parent c1bf3f3999
commit b26d5da84e

View File

@ -1500,6 +1500,9 @@ func s3Connection(opt *Options) (*s3.S3, *session.Session, error) {
awsConfig.WithEndpoint(opt.Endpoint)
}
// Allow URI with "." etc
awsConfig.DisableRestProtocolURICleaning = aws.Bool(true)
// awsConfig.WithLogLevel(aws.LogDebugWithSigning)
awsSessionOpts := session.Options{
Config: *awsConfig,