Merge pull request #75 from harshavardhana/pr_out_previous_fix_was_incomplete_move_the_around_to_signature_consistency
This commit is contained in:
+3
-3
@@ -90,9 +90,9 @@ func (c *Client) bucketURL(bucket string) string {
|
||||
if strings.Contains(c.endpoint(), "localhost") || strings.Contains(bucket, "127.0.0.1") {
|
||||
url_ = fmt.Sprintf("%s/%s", c.endpoint(), bucket)
|
||||
} else if strings.Contains(c.endpoint(), "amazonaws.com") {
|
||||
url_ = fmt.Sprintf("https://%s.%s", bucket, strings.TrimPrefix(c.endpoint(), "https://"))
|
||||
url_ = fmt.Sprintf("https://%s.%s/", bucket, strings.TrimPrefix(c.endpoint(), "https://"))
|
||||
} else {
|
||||
url_ = fmt.Sprintf("http://%s.%s", bucket, strings.TrimPrefix(c.endpoint(), "http://"))
|
||||
url_ = fmt.Sprintf("http://%s.%s/", bucket, strings.TrimPrefix(c.endpoint(), "http://"))
|
||||
}
|
||||
return url_
|
||||
}
|
||||
@@ -101,7 +101,7 @@ func (c *Client) bucketURL(bucket string) string {
|
||||
}
|
||||
|
||||
func (c *Client) keyURL(bucket, key string) string {
|
||||
return c.bucketURL(bucket) + "/" + key
|
||||
return c.bucketURL(bucket) + key
|
||||
}
|
||||
|
||||
func newReq(url_ string) *http.Request {
|
||||
|
||||
Reference in New Issue
Block a user