Skip to content

Commit

Permalink
fix: ensure buffer has enough space (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats authored Dec 12, 2018
1 parent fa07ef4 commit 8bd7be3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ module.exports = ({ cacheDir, onError = noop } = {}) => {
url,
isTwitterUrl(url) && PROXY_URL
? [...opts, `--proxy=${PROXY_URL}`]
: opts
: opts,
{ maxBuffer: Infinity }
)
} catch (err) {
onError(err, url)
Expand Down

0 comments on commit 8bd7be3

Please sign in to comment.