Comparing version 1.5.1 to 1.5.2
@@ -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(); |
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
68811
660