browserify / http-browserify

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

Cannot process certain response strings #84

Open shenanigans opened 9 years ago

shenanigans commented 9 years ago

https://github.com/substack/http-browserify/blob/master/lib/response.js#L107

Due to the way this regex is used, a response String that contains the substring "ArrayBuffer" is assumed to be an ArrayBuffer. For example, http-browserify cannot load a page containing its own source because the regex will select itself.