making sure headers will drop buffer value

This commit is contained in:
David Frank 2016-09-11 22:18:43 +08:00
parent 515525a388
commit e4a7da8326
1 changed files with 2 additions and 0 deletions

View File

@ -1150,6 +1150,7 @@ describe('node-fetch', function() {
res.j = NaN; res.j = NaN;
res.k = true; res.k = true;
res.l = false; res.l = false;
res.m = Buffer.alloc(10);
var h1 = new Headers(res); var h1 = new Headers(res);
@ -1169,6 +1170,7 @@ describe('node-fetch', function() {
expect(h1._headers['j']).to.be.undefined; expect(h1._headers['j']).to.be.undefined;
expect(h1._headers['k']).to.be.undefined; expect(h1._headers['k']).to.be.undefined;
expect(h1._headers['l']).to.be.undefined; expect(h1._headers['l']).to.be.undefined;
expect(h1._headers['m']).to.be.undefined;
expect(h1._headers['z']).to.be.undefined; expect(h1._headers['z']).to.be.undefined;
}); });