aws / aws-sdk-php

Official repository of the AWS SDK for PHP (@awsforphp)
http://aws.amazon.com/sdkforphp
Apache License 2.0
6.04k stars 1.23k forks source link

In a subresource the parameter value will be an empty string. #2924

Open jeijei4 opened 6 months ago

jeijei4 commented 6 months ago

Issue #, if available:

Description of changes:

The documentation explains: when a request targets a subresource, the corresponding query parameter value will be an empty string ("").

Example: "http://s3.amazonaws.com/examplebucket?acl"

The CanonicalQueryString in this case is as follows:

UriEncode("acl") + "=" + ""

https://docs.aws.amazon.com/IAM/latest/UserGuide/create-signed-request.html#create-canonical-request

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.