Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prepare-response

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prepare-response - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

index.js

@@ -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": [],

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc