diff --git a/cmd/web-handlers.go b/cmd/web-handlers.go index 8c41b283c..bbde076f9 100644 --- a/cmd/web-handlers.go +++ b/cmd/web-handlers.go @@ -919,7 +919,7 @@ func presignedGet(host, bucket, object string, expiry int64) string { signature := getSignature(signingKey, stringToSign) // Construct the final presigned URL. - return host + path + "?" + query + "&" + "X-Amz-Signature=" + signature + return host + getURLEncodedName(path) + "?" + query + "&" + "X-Amz-Signature=" + signature } // toJSONError converts regular errors into more user friendly