Skip to content

Commit

Permalink
fix: fix numeric identifier issue
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Apr 23, 2024
1 parent 23fe5ab commit ea2577e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ Request.prototype._end = function () {
let parserHandlesEnd = false;
if (buffer) {
// Protectiona against zip bombs and other nuisance
let responseBytesLeft = this._maxResponseSize || 200_000_000;
let responseBytesLeft = this._maxResponseSize || 200000000;
res.on('data', (buf) => {
responseBytesLeft -= buf.byteLength || buf.length > 0 ? buf.length : 0;
if (responseBytesLeft < 0) {
Expand Down

0 comments on commit ea2577e

Please sign in to comment.