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

Do not only use url.QueryEscape(str). #8

Open
Altynaisuny opened this issue Sep 22, 2020 · 0 comments
Open

Do not only use url.QueryEscape(str). #8

Altynaisuny opened this issue Sep 22, 2020 · 0 comments

Comments

@Altynaisuny
Copy link

amazon:
http://docs.developer.amazonservices.com/en_US/dev_guide/DG_QueryString.html
Signature query string:
Percent encode the space character as %20. Do not percent encode the space character as +, as some common encoding schemes do.
url.QueryEscape will encode the space to "+", not "%20".
so you need to use url.PathEscape() first .
such as : apiParams = append(apiParams, key+"="+url.QueryEscape(url.PathEscape(str)))

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

No branches or pull requests

1 participant