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

Change append_encoded_value by append_value #24

Merged
merged 1 commit into from
Jan 4, 2016

Conversation

mikz
Copy link
Contributor

@mikz mikz commented Jan 4, 2016

Internally, http client calls to URI.encode_www_form and this encodes
values properly, we don't need to do it by ourselves.

There was an issue with that and timestamps, because the final value
wasn't correct.

Ex:

valid:

URI.encode_www_form({timestamp: Time.now})
=> "timestamp=2016-01-04+15%3A01%3A49+%2B0000"

invalid:

URI.encode_www_form({timestamp: CGI.escape(Time.now.to_s)})
=> "timestamp=2016-01-04%2B15%253A01%253A38%2B%252B0000"

Internally, http client calls to `URI.encode_www_form` and this encodes
values properly, we don't need to do it by ourselves.

There was an issue with that and timestamps, because the final value
wasn't correct.

Ex:

valid:

URI.encode_www_form({timestamp: Time.now})
=> "timestamp=2016-01-04+15%3A01%3A49+%2B0000"

invalid:

URI.encode_www_form({timestamp: CGI.escape(Time.now.to_s)})
=> "timestamp=2016-01-04%2B15%253A01%253A38%2B%252B0000"
@mikz mikz force-pushed the change-append-encoded-value branch from c6cf5f0 to edeea18 Compare January 4, 2016 15:39
mikz added a commit that referenced this pull request Jan 4, 2016
Change `append_encoded_value` by `append_value`
@mikz mikz merged commit 23d1b5b into master Jan 4, 2016
@mikz mikz deleted the change-append-encoded-value branch January 4, 2016 15:44
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.

3 participants