faraday: Faraday handles repeated query parameters incorrectly
>> require 'faraday'
=> true
>> request = Faraday.default_connection.build_request(:get) do |req|
?> req.url("http://www.example.com/?data=1&data=2")
>> end
=> #<struct Faraday::Request method=:get, path="http://www.example.com/", params={"data"=>["1", "2"]}, headers={}, body=nil, options={:proxy=>nil}>
>> request.to_env(Faraday.default_connection)[:url]
=> #<URI::HTTP:0x0000010287d018 URL:http://www.example.com/?data%5B%5D=1&data%5B%5D=2>
I miss the Addressable dependency already…
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Comments: 30 (16 by maintainers)
Commits related to this issue
- Introduces a parameter encoder option to connections. Allows parameter encoding behavior to be overridden. Fixes technoweenie/faraday#182. Based on sqrrrl/faraday@dc8409d4d5. — committed to sporkmonger/faraday by sporkmonger 12 years ago
- Introduces a parameter encoder option to connections. Allows parameter encoding behavior to be overridden. Fixes technoweenie/faraday#182. Based on sqrrrl/faraday@dc8409d4d5. Cherry-p... — committed to lostisland/faraday by sporkmonger 12 years ago
- monkey patch multiple param value handling. ugh. see https://github.com/lostisland/faraday/issues/182 — committed to karpet/dezi-client-ruby by deleted user 10 years ago
- Document resolution for issue #182 — committed to Diasporism/faraday by deleted user 9 years ago
- Document resolution for issue #182 — committed to Diasporism/faraday by deleted user 9 years ago
- Merge branch 'params-docs' Closes #491, references #182 [ci skip] — committed to lostisland/faraday by mislav 9 years ago
I had missed it, that’s awesome! Thank you!