spotify / XCRemoteCache

Other
825 stars 50 forks source link

Encode path in AWS V4 signing requests #194

Closed polac24 closed 1 year ago

polac24 commented 1 year ago

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