Closed crondaemon closed 1 year ago
A deeper investigation pointed out it is not an issue with em-http-request
, but with Addressable
, instead. I've opened an issue there: sporkmonger/addressable#390, with an even smaller reproducer. Sorry for the noise.
I'm re-opening this, since it looks like this is not an addressable issue. This code is causing an exception, while I would have expected it to work.
EventMachine::HttpRequest.new("http://mysite.com//?p1=v1&p2=v2").get
while
EventMachine::HttpRequest.new("http://mysite.com/?p1=v1&p2=v2").get
works (see the double slash).
I'm getting this error when passing an URL containing
//?
instead of/?
. A very simple reproducer iswhich gives me
However testing the URL on https://www.freeformatter.com/url-parser-query-string-splitter.html gives me a correct URL.