http-browserify icon indicating copy to clipboard operation
http-browserify copied to clipboard

Cannot process certain response strings

Open shenanigans opened this issue 10 years ago • 0 comments

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.

shenanigans avatar Apr 09 '15 09:04 shenanigans