aristidb / aws

Amazon Web Services for Haskell
BSD 3-Clause "New" or "Revised" License
238 stars 107 forks source link

Fix V2 path when calculating signature #245

Closed tiago-loureiro closed 6 years ago

tiago-loureiro commented 6 years ago

Similarly to how it is done for V4 here, we should not touch forward slashes when creating the string to sign as described in the docs

Encode the forward slash character, '/', everywhere except in the object key name. For example, if the object key name is photos/Jan/sample.jpg, the forward slash in the key name is not encoded.