driverdan / node-XMLHttpRequest

XMLHttpRequest for node.js
http://thedanexperiment.com/2009/10/04/emulating-xmlhttprequest-in-node-js/
MIT License
416 stars 299 forks source link

Set default host on protocol==null #105

Closed tomaash closed 6 years ago

tomaash commented 9 years ago

Some libraries set protocol to null instead of undefined, so we need to check for it here to allow default behaviour. Otherwise, we get the "Protocol not supported." error.