mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
presign v2: include resp headers in signature calc (#3428)
Include response headers when presigning an url using signature v2 algorithm
This commit is contained in:
parent
4daa0d2cee
commit
5c10f4adf0
@ -37,6 +37,7 @@ const (
|
||||
// http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#RESTAuthenticationStringToSign
|
||||
|
||||
// Whitelist resource list that will be used in query string for signature-V2 calculation.
|
||||
// The list should be alphabetically sorted
|
||||
var resourceList = []string{
|
||||
"acl",
|
||||
"delete",
|
||||
@ -47,6 +48,12 @@ var resourceList = []string{
|
||||
"partNumber",
|
||||
"policy",
|
||||
"requestPayment",
|
||||
"response-cache-control",
|
||||
"response-content-disposition",
|
||||
"response-content-encoding",
|
||||
"response-content-language",
|
||||
"response-content-type",
|
||||
"response-expires",
|
||||
"torrent",
|
||||
"uploadId",
|
||||
"uploads",
|
||||
|
Loading…
Reference in New Issue
Block a user