Skip to content

Commit bd406fa

Browse files
author
enguer
committed
add presigned url feature
1 parent 284d0dc commit bd406fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ func (h *Handler) buildUpstreamRequest(req *http.Request) (*http.Request, error)
230230

231231
// WORKAROUND S3CMD which dont use white space before the some commas in the authorization header
232232
fakeAuthorizationStr := fakeReq.Header.Get("Authorization")
233-
// Sanitize fakeReq to remove white spaces before the comma signature
233+
// Sanitize fakeReq to add white spaces after the comma signature if missing
234234
authorizationStr := strings.Replace(req.Header["Authorization"][0], ",Signature", ", Signature", 1)
235-
// Sanitize fakeReq to remove white spaces before the comma signheaders
235+
// Sanitize fakeReq to add white spaces after the comma signheaders if missing
236236
authorizationStr = strings.Replace(authorizationStr, ",SignedHeaders", ", SignedHeaders", 1)
237237

238238
// Verify that the fake request and the incoming request have the same signature

0 commit comments

Comments
 (0)