Socket
Socket
Sign inDemoInstall

http-parser-js

Package Overview
Dependencies
0
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.13 to 0.5.0

11

http-parser.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc