+8
-1
@@ -267,3 +267,2 @@ // Copyright Joyent, Inc. and other Node contributors. | ||
| var socket = this; | ||
| var parser = socket.parser; | ||
| var req = socket._httpMessage; | ||
@@ -279,2 +278,6 @@ debug('SOCKET ERROR:', err.message, err.stack); | ||
| // Handle any pending data | ||
| socket.read(); | ||
| var parser = socket.parser; | ||
| if (parser) { | ||
@@ -284,2 +287,6 @@ parser.finish(); | ||
| } | ||
| // Ensure that no further data will come out of the socket | ||
| socket.removeListener('data', socketOnData); | ||
| socket.removeListener('end', socketOnEnd); | ||
| socket.destroy(); | ||
@@ -286,0 +293,0 @@ } |
+2
-2
| { | ||
| "name": "http-node", | ||
| "version": "0.0.0", | ||
| "description": "Node's http as a standalone module", | ||
| "version": "0.0.1", | ||
| "description": "Nodes http as a standalone package", | ||
| "repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
+1
-1
| # http-node | ||
| This module is a standalone package of Nodes http, Node.js v0.12.0. Unlike | ||
| This module is a standalone package of Nodes http, Node.js v0.12.3. Unlike | ||
| [http-browserify](https://www.npmjs.com/package/http-browserify), this is not | ||
@@ -4,0 +4,0 @@ a shim but the original code of Node, so it requires the `net` module. This is |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
81728
0.26%2116
0.24%