Skip to content

Commit 6002768

Browse files
committed
Upgrade shot to 1.5.3. Closes hapijs#2586
1 parent 8613cf1 commit 6002768

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

npm-shrinkwrap.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/transmit.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ describe('transmission', function () {
460460
expect(res.headers['content-type']).to.equal('text/javascript; charset=utf-8');
461461
expect(res.headers['content-encoding']).to.equal('gzip');
462462
expect(res.headers.vary).to.equal('accept-encoding');
463-
Zlib.unzip(new Buffer(res.payload, 'binary'), function (err, result) {
463+
Zlib.unzip(res.rawPayload, function (err, result) {
464464

465465
expect(err).to.not.exist();
466466
expect(result.toString()).to.equal('/**/docall({"first":"1","last":"2"});');
@@ -1695,7 +1695,7 @@ describe('transmission', function () {
16951695
expect(res.headers['content-length']).to.equal(5);
16961696
expect(res.headers['content-range']).to.equal('bytes 0-4/42010');
16971697
expect(res.headers['accept-ranges']).to.equal('bytes');
1698-
expect(res.payload).to.equal('\x89PNG\r');
1698+
expect(res.rawPayload.toString('binary')).to.equal('\x89PNG\r');
16991699
done();
17001700
});
17011701
});
@@ -1729,7 +1729,7 @@ describe('transmission', function () {
17291729
expect(res.headers['content-length']).to.equal(5);
17301730
expect(res.headers['content-range']).to.equal('bytes 42005-42009/42010');
17311731
expect(res.headers['accept-ranges']).to.equal('bytes');
1732-
expect(res.payload).to.equal('D\xAEB\x60\x82');
1732+
expect(res.rawPayload.toString('binary')).to.equal('D\xAEB\x60\x82');
17331733
done();
17341734
});
17351735
});
@@ -1746,7 +1746,7 @@ describe('transmission', function () {
17461746
expect(res.headers['content-length']).to.equal(5);
17471747
expect(res.headers['content-range']).to.equal('bytes 42005-42009/42010');
17481748
expect(res.headers['accept-ranges']).to.equal('bytes');
1749-
expect(res.payload).to.equal('D\xAEB\x60\x82');
1749+
expect(res.rawPayload.toString('binary')).to.equal('D\xAEB\x60\x82');
17501750
done();
17511751
});
17521752
});
@@ -1763,7 +1763,7 @@ describe('transmission', function () {
17631763
expect(res.headers['content-length']).to.equal(5);
17641764
expect(res.headers['content-range']).to.equal('bytes 42005-42009/42010');
17651765
expect(res.headers['accept-ranges']).to.equal('bytes');
1766-
expect(res.payload).to.equal('D\xAEB\x60\x82');
1766+
expect(res.rawPayload.toString('binary')).to.equal('D\xAEB\x60\x82');
17671767
done();
17681768
});
17691769
});
@@ -1784,7 +1784,7 @@ describe('transmission', function () {
17841784
expect(res2.headers['content-length']).to.equal(5);
17851785
expect(res2.headers['content-range']).to.equal('bytes 42005-42009/42010');
17861786
expect(res2.headers['accept-ranges']).to.equal('bytes');
1787-
expect(res2.payload).to.equal('D\xAEB\x60\x82');
1787+
expect(res2.rawPayload.toString('binary')).to.equal('D\xAEB\x60\x82');
17881788
done();
17891789
});
17901790
});

0 commit comments

Comments
 (0)