prepare-response
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -78,7 +78,7 @@ 'use strict'; | ||
res.setHeader('Content-Encoding', 'gzip'); | ||
res.setHeader('Content-Length', this.gzippedBody.length); | ||
// res.setHeader('Content-Length', this.gzippedBody.length); | ||
if ('HEAD' === req.method) res.end(); | ||
else res.end(this.gzippedBody); | ||
} else { | ||
res.setHeader('Content-Length', this.body.length); | ||
// res.setHeader('Content-Length', this.body.length); | ||
if ('HEAD' === req.method) res.end(); | ||
@@ -85,0 +85,0 @@ else res.end(this.body); |
{ | ||
"name": "prepare-response", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Prepare a text resposne to be efficiently sent", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
6164