-
Notifications
You must be signed in to change notification settings - Fork 984
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
Faraday does not parse URLs correctly #428
Comments
@comandeo - Does WSDL service url can have multiple empty parameters like this:
or empty param can be only last param?( In your example - WSDL) |
Though usually WSDL urls do not have multiple empty params, your example is still a valid url according to RFC 3986. URL part after |
@comandeo , it looks that those urls are valid: def test_encode_nil_nested
assert_equal "a=", Faraday::NestedParamsEncoder.encode("a" => nil)
end So it, looks, that
works as a maintainer's predictable behaviour
What do you think ? I wish, some of the main contributors help us about ideas how it must work( @mislav, @technoweenie , @sferik, @zenhob or etc )
|
Adding an |
Code example below:
After some investigation I found that URL
http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
is being converted intoURL:http://www.webservicex.net/CurrencyConvertor.asmx?WSDL=
with and additional symbol=
at the end.Seems that
Faraday::NestedParamsEncoder.decode
method considers query string?WSDL
as a parameter with empty value.Since URLs of such kind a quite typical for WSDLs of web services, it would be great if we could find a solution for this issue.
The text was updated successfully, but these errors were encountered: