mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Fix presigned URL for access key with special characters (#6012)
Fixes #6011
This commit is contained in:
committed by
kannappanr
parent
6fb0604502
commit
eafc15cd47
@@ -35,6 +35,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/minio/minio-go/pkg/s3utils"
|
||||
sha256 "github.com/minio/sha256-simd"
|
||||
)
|
||||
|
||||
@@ -92,7 +93,7 @@ func getSignedHeaders(signedHeaders http.Header) string {
|
||||
//
|
||||
func getCanonicalRequest(extractedSignedHeaders http.Header, payload, queryStr, urlPath, method string) string {
|
||||
rawQuery := strings.Replace(queryStr, "+", "%20", -1)
|
||||
encodedPath := getURLEncodedName(urlPath)
|
||||
encodedPath := s3utils.EncodePath(urlPath)
|
||||
canonicalRequest := strings.Join([]string{
|
||||
method,
|
||||
encodedPath,
|
||||
|
||||
Reference in New Issue
Block a user