1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00
httparty/spec
Jamie Tanna 3db7a4eb36 Fix: URL Encode keys and values in URL encoded form data
As noted in #687, the existing implementation of our querystring
construction was not valid according to the HTTP/1.1 specification,
which was noticed with an integration issue with Apache Tomcat.

This affects both the generation of Query Strings, and URL encoded form
parameters.

The solution is to ensure that we always URL-encode the keys, as well as
the values.

It appears that the existing test we had for this, "returns a Rails
style query string", was not actually quite testing what we thought it
was, as we had not tested the rendering of the raw values, only the URL
decoded ones.

Closes #697.
2020-04-16 17:59:53 +01:00
..
fixtures Generate larger keys for tests (#653) 2019-03-21 14:52:05 +04:00
httparty Fix: URL Encode keys and values in URL encoded form data 2020-04-16 17:59:53 +01:00
support Expose .connection on block param (#648) 2019-03-20 18:50:06 +04:00
httparty_spec.rb Pass options to dynamic block headers (#661) 2019-08-30 18:55:03 +03:00
spec_helper.rb [WIP] Fix encoding of streamed chunk (#644) 2019-02-11 17:49:30 +04:00