browserify / http-browserify

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

Check for undefined port when assigning default #26

Open derekr opened 10 years ago

derekr commented 10 years ago

lib/request builds the uri based on a falsey port (it won't append a port number if there isn't one), but this case makes it difficult to test cross domain requests when running on a non standard port number since it's always defaulting to window.location.port.