browserify / http-browserify

node's http module, but for the browser
MIT License
244 stars 110 forks source link

http.request not handling relative paths #92

Closed lukehorvat closed 8 years ago

lukehorvat commented 9 years ago

If window.location.href is http://localhost:8000/app/#/, one would expect a GET to ./ping to be a request to http://localhost:8000/app/ping. At least, that's how XMLHttpRequest behaves.

But instead it looks like http.request sends the request to http://localhost:8000./ping, which is not a valid URL...

lukehorvat commented 8 years ago

Fixed in stream-http@1.6.0.