node-XMLHttpRequest
node-XMLHttpRequest copied to clipboard
Why is abort() called at the top of open()?
Line 157 in XMLHTTPRequest.js:
this.open = function(method, url, async, user, password) { this.abort(); errorFlag = false;
This causes all calls to open(), to immediately invoke the 'abort' event on the XHR object. Presuming you are catching the 'abort' event, this will of course, abort every single call you try to make?
am I missing something here? This basically breaks open()?
Did someone break this on purpose because the module is deprecated or something? just commenting that out so I can get along with what I was trying to do, but if it's broke on purpose someone should update README.md.
Interesting. I would like to know as well.
I thought I'll try removing it manually, run the test to see if there is any quick hints to explain this. But I have no idea how the tests can be executed. I have thus raised #177 to address it...