in s3plugin/s3plugin.go [446:455]
func removeBucketFromPath(req *request.Request) {
req.Operation.HTTPPath = strings.Replace(req.Operation.HTTPPath, "/{Bucket}", "", -1)
if !strings.HasPrefix(req.Operation.HTTPPath, "/") {
req.Operation.HTTPPath = "/" + req.Operation.HTTPPath
}
req.HTTPRequest.URL.Path = strings.Replace(req.HTTPRequest.URL.Path, "/{Bucket}", "", -1)
if !strings.HasPrefix(req.HTTPRequest.URL.Path, "/") {
req.HTTPRequest.URL.Path = "/" + req.HTTPRequest.URL.Path
}
}