Encode path in AWS V4 signing requests by polac24 · Pull Request #194 · spotify/XCRemoteCache
As the doc says, the path should be URL encoded
CanonicalUri – The URI-encoded version of the absolute path component URL (everything between the host and the question mark character (?) that starts the query string parameters). If the absolute path is empty, use a forward slash character (/).
This PR ensures we escape that - it might happen if a target or Configuration has e.g. whitespace.
Fixes #192