Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use v4 signatures in SQS for all regions and use aws.Encode instead of url.QueryEscape in v4 signer #115

Merged
merged 5 commits into from
Mar 25, 2016

Conversation

harryrose
Copy link
Contributor

I noticed that there was a branch in the SQS code which meant the v4 signer would only be used in the cn-north-1 region. I don't think this is required any more, so I have removed that branch.

Following this change, the sign function in the sqs package seemed to no longer be used, so I have removed that.

I also noticed that in Canonical URLs, spaces were being encoded to + rather than %20. Using the aws.Encode function seems to resolve this issue.

According to AWS docs, this should follow RFC-3986, which uses %20 encoding of space characters.  However, golang encodes to a + character.
It seems that this is no longer needed.
@boyand boyand merged commit 1d57d6d into goamz:master Mar 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants