Comparing version 0.0.9 to 0.1.0
@@ -107,2 +107,3 @@ /* | ||
opts.lowercase = true; | ||
var header_func = opts.lowercase ? function(h){ return h } : upperize; | ||
@@ -129,4 +130,6 @@ // req.connection.setTimeout(timeout); // we'll set or own timer | ||
var code = req.aborted ? 499 : (errors[err.code] || 500); | ||
res.writeHead(code, {'Content-Type': 'text/plain', 'Connection': 'close'}); | ||
if (!res.headersSent) { | ||
var code = req.aborted ? 499 : (errors[err.code] || 500); | ||
res.writeHead(code, {'Content-Type': 'text/plain', 'Connection': 'close'}); | ||
} | ||
@@ -158,7 +161,2 @@ if (req.method !== 'HEAD') | ||
} | ||
response.connection.on('end', function() { | ||
if (response.readable && response.resume) | ||
response.resume(); | ||
}); | ||
*/ | ||
@@ -179,2 +177,7 @@ | ||
response.connection.on('end', function() { | ||
if (response.readable && response.resume) | ||
response.resume(); | ||
}); | ||
response.once('end', function(){ | ||
@@ -181,0 +184,0 @@ // log('Proxy response ended.') |
{ | ||
"name": "under", | ||
"version": "0.0.9", | ||
"version": "0.1.0", | ||
"description": "Fast reverse HTTP proxy with load balancing and queue support.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10271
332