Skip to content
This repository was archived by the owner on Aug 22, 2020. It is now read-only.

Client does not create a valid signature when spaces are in the URL.#1

Merged
jasonhancock merged 1 commit intojasonhancock:masterfrom
bigkraig:master
Oct 19, 2012
Merged

Client does not create a valid signature when spaces are in the URL.#1
jasonhancock merged 1 commit intojasonhancock:masterfrom
bigkraig:master

Conversation

@bigkraig
Copy link
Copy Markdown

I noticed while trying to register an ssh key with registerSSHKeyPair that the client was generating an invalid signature when a space was added in the parameters. The API is expecting spaces to be encoded with %20, not +. This commit replaces the encoded +'s with %20.

… with spaces as %20, not +.

urllib.quote will not work as other characters, like /, still need to be encoded.
@jasonhancock
Copy link
Copy Markdown
Owner

Sorry it took me so long to get to this. Thanks for the pull request.

jasonhancock added a commit that referenced this pull request Oct 19, 2012
Properly escape spaces in the URL. Client does not create a valid signature when spaces are in the URL.
@jasonhancock jasonhancock merged commit f2e1e41 into jasonhancock:master Oct 19, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants