Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

percent encoding in URL #94

Open
oldshuren opened this issue Jul 3, 2015 · 0 comments
Open

percent encoding in URL #94

oldshuren opened this issue Jul 3, 2015 · 0 comments

Comments

@oldshuren
Copy link

If you have some special characters in your object's key. The Authentication calculation is wrong.

There are actually two problems,

  1. URLByAppendingPathComponent already encodes special character, so the function AFPathByEscapingSpacesWithPlusSigns() is not needed.
  2. In AFAWSSignatureForRequest, when you get the path from request.URL.path. The % encode in the URL is decoded. So the calculation of Authenticaton header is wrong.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant