diff --git a/lib/response.js b/lib/response.js index 371875fe1..b7d77dea8 100644 --- a/lib/response.js +++ b/lib/response.js @@ -211,7 +211,7 @@ module.exports = { return; } - return ~~len; + return Math.trunc(len) || 0; }, /**