You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

simple-http-proxy

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-http-proxy - npm Package Compare versions

Comparing version

to
0.5.9

8

index.js

@@ -103,4 +103,11 @@

// The headers have already been sent so we can't actually respond to this request
if (res.headersSent) {
res.end();
return request.abort();
}
// Send down the statusCode and headers
debug('sending head', response.statusCode, response.headers);
res.writeHead(response.statusCode, response.headers);

@@ -116,3 +123,2 @@

// Clean up the socket
// TODO is there a better way to do this? There's a 'socket hang up' error being emitted...
request.setSocketKeepAlive(false);

@@ -119,0 +125,0 @@ request.socket.destroy();

2

package.json
{
"name": "simple-http-proxy",
"version": "0.5.8",
"version": "0.5.9",
"description": "Simple proxy middleware",

@@ -5,0 +5,0 @@ "main": "index.js",