Skip to content
This repository has been archived by the owner on Aug 14, 2018. It is now read-only.

Commit

Permalink
Merge pull request #17 from smartystreets/variadic-credentials
Browse files Browse the repository at this point in the history
Simple parsing change for virtual-host style urls
  • Loading branch information
mholt committed Jun 12, 2014
2 parents 7ef0894 + d08837d commit 2b1fb78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func serviceAndRegion(host string) (service string, region string) {
if parts[1] == "s3" {
service = "s3"
} else if strings.HasPrefix(parts[1], "s3-") {
region = region[3:]
region = parts[1][3:]
service = "s3"
} else {
service = parts[0]
Expand Down

0 comments on commit 2b1fb78

Please sign in to comment.