Comparing version 5.6.1 to 6.0.0
@@ -450,6 +450,2 @@ | ||
if (payload instanceof Buffer) { | ||
payload = payload.toString(); | ||
} | ||
return callback(err, res, payload); | ||
@@ -456,0 +452,0 @@ }); |
{ | ||
"name": "wreck", | ||
"description": "HTTP Client Utilities", | ||
"version": "5.6.1", | ||
"version": "6.0.0", | ||
"repository": "git://github.com/hapijs/wreck", | ||
@@ -6,0 +6,0 @@ "main": "lib/index", |
@@ -48,2 +48,3 @@ // Load modules | ||
expect(err).to.not.exist(); | ||
expect(Buffer.isBuffer(body)).to.equal(true); | ||
expect(body.toString()).to.equal(internals.payload); | ||
@@ -1385,3 +1386,3 @@ server.close(); | ||
expect(res.statusCode).to.equal(200); | ||
expect(payload).to.equal('ok'); | ||
expect(payload.toString()).to.equal('ok'); | ||
server.close(); | ||
@@ -1407,3 +1408,3 @@ done(); | ||
expect(res.statusCode).to.equal(200); | ||
expect(payload).to.equal('ok'); | ||
expect(payload.toString()).to.equal('ok'); | ||
server.close(); | ||
@@ -1429,3 +1430,3 @@ done(); | ||
expect(res.statusCode).to.equal(200); | ||
expect(payload).to.equal('ok'); | ||
expect(payload.toString()).to.equal('ok'); | ||
server.close(); | ||
@@ -1451,3 +1452,3 @@ done(); | ||
expect(res.statusCode).to.equal(200); | ||
expect(payload).to.equal('ok'); | ||
expect(payload.toString()).to.equal('ok'); | ||
server.close(); | ||
@@ -1764,3 +1765,3 @@ done(); | ||
expect(res.statusCode).to.equal(200); | ||
expect(payload).to.equal('ok'); | ||
expect(payload.toString()).to.equal('ok'); | ||
server.close(); | ||
@@ -1767,0 +1768,0 @@ }); |
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
121926
1712