forked from TrueCloudLab/restic
Update s3 library
This commit is contained in:
parent
61e66e936f
commit
181480b68b
3 changed files with 16 additions and 3 deletions
2
Godeps/_workspace/src/github.com/minio/minio-go/api-put-bucket.go
generated
vendored
2
Godeps/_workspace/src/github.com/minio/minio-go/api-put-bucket.go
generated
vendored
|
@ -102,7 +102,7 @@ func (c Client) makeBucketRequest(bucketName string, acl BucketACL, location str
|
|||
// If endpoint supports virtual host style use that always.
|
||||
// Currently only S3 and Google Cloud Storage would support this.
|
||||
if isVirtualHostSupported(c.endpointURL) {
|
||||
targetURL.Host = bucketName + "/" + c.endpointURL.Host
|
||||
targetURL.Host = bucketName + "." + c.endpointURL.Host
|
||||
targetURL.Path = "/"
|
||||
} else {
|
||||
// If not fall back to using path style.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue