Update s3 library

This commit is contained in:
Alexander Neumann
2016-01-03 21:50:59 +01:00
parent 61e66e936f
commit 181480b68b
3 changed files with 16 additions and 3 deletions
+13
View File
@@ -1,9 +1,22 @@
sudo: false
language: go
os:
- linux
- osx
env:
- ARCH=x86_64
- ARCH=i686
go:
- 1.5.1
- 1.5.2
script:
- go vet ./...
- go test -test.short -race -v ./...
notifications:
slack:
secure: HrOX2k6F/sEl6Rr4m5vHOdJCIwV42be0kz1Jy/WSMvrl/fQ8YkldKviLeWh4aWt1kclsYhNQ4FqGML+RIZYsdOqej4fAw9Vi5pZkI1MzPJq0UjrtMqkqzvD90eDGQYCKwaXjEIN8cohwJeb6X0B0HKAd9sqJW5GH5SwnhH5WWP8=
+1 -1
View File
@@ -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.