http-parser-js
Advanced tools
Comparing version 0.4.13 to 0.5.0
@@ -314,7 +314,10 @@ /*jshint node:true */ | ||
// See https://github.com/creationix/http-parser-js/pull/53 | ||
// if both isChunked and hasContentLength, content length wins | ||
// because it has been verified to match the body length already | ||
// if both isChunked and hasContentLength, isChunked wins | ||
// This is required so the body is parsed using the chunked method, and matches | ||
// Chrome's behavior. We could, maybe, ignore them both (would get chunked | ||
// encoding into the body), and/or disable shouldKeepAlive to be more | ||
// resilient. | ||
if (this.isChunked && hasContentLength) { | ||
this.isChunked = false; | ||
hasContentLength = false; | ||
this.body_bytes = null; | ||
} | ||
@@ -321,0 +324,0 @@ |
{ | ||
"name": "http-parser-js", | ||
"version": "0.4.13", | ||
"version": "0.5.0", | ||
"description": "A pure JS HTTP parser for node.", | ||
@@ -5,0 +5,0 @@ "main": "http-parser.js", |
20175
415