browserify / browserify/http-browserify

Cannot process certain response strings

Open
#84 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
245
Forks
104
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at lib/response.js line 107 and inspect how the regex classifies response strings. Reproduce the issue with a response containing the substring "ArrayBuffer", including the project's own source; done means such text is processed as a normal response rather than misidentified as an ArrayBuffer.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.