browserify / http-browserify

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

Make sure to not call res.handle in case the request was aborted in IE9 #45

Closed TimBeyer closed 10 years ago

TimBeyer commented 10 years ago

This PR solves an issue documented in http://stackoverflow.com/questions/7287706/ie-9-javascript-error-c00c023f

When making an XMLHttpRequest in IE9, it will still go ahead and call the onreadystatechange handler with readyState === 4. Then when trying to access a property of the XHR, it dies with a wonderfully cryptic SCRIPT575: Could not complete the operation due to error c00c023f.

ghost commented 10 years ago

Published in 1.3.2. Thanks for the patch!