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

shot

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shot - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

6

lib/index.js

@@ -229,4 +229,2 @@ // Load modules

res.rawPayload = payloadBuffer;
if (!res.headers['transfer-encoding']) {

@@ -250,3 +248,2 @@ res.payload = payloadBuffer.toString();

payloadBytes = payloadBytes.concat(Array.prototype.slice.call(nextData, 0));
res.payload += nextData.toString();
rest = next.slice(size + 2);

@@ -257,3 +254,4 @@ }

res.payloadBuffer = new Buffer(payloadBytes);
res.rawPayload = new Buffer(payloadBytes);
res.payload = res.rawPayload.toString('utf8');
var headers = rest.toString().split(CRLF);

@@ -260,0 +258,0 @@ headers.forEach(function (header) {

{
"name": "shot",
"description": "Injects a fake HTTP request/response into a node HTTP server",
"version": "1.5.1",
"version": "1.5.2",
"repository": "git://github.com/hapijs/shot",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

@@ -178,3 +178,3 @@ // Load modules

Zlib.unzip(res.payloadBuffer, function (err, unzipped) {
Zlib.unzip(res.rawPayload, function (err, unzipped) {

@@ -181,0 +181,0 @@ expect(err).to.not.exist();

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