mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
copy query values before update to preserve the expected keys (#15310)
in success_action_redirect we were missing required query params as per S3 spec - updated tests.
This commit is contained in:
@@ -499,9 +499,11 @@ func testPostPolicyBucketHandlerRedirect(obj ObjectLayer, instanceType string, t
|
||||
t.Error("Unexpected error: ", err)
|
||||
}
|
||||
|
||||
redirectURL.Query().Add("bucket", info.Bucket)
|
||||
redirectURL.Query().Add("key", info.Name)
|
||||
redirectURL.Query().Add("etag", "\""+info.ETag+"\"")
|
||||
v := redirectURL.Query()
|
||||
v.Add("bucket", info.Bucket)
|
||||
v.Add("key", info.Name)
|
||||
v.Add("etag", "\""+info.ETag+"\"")
|
||||
redirectURL.RawQuery = v.Encode()
|
||||
expectedLocation := redirectURL.String()
|
||||
|
||||
// Check the new location url
|
||||
|
||||
Reference in New Issue
Block a user