[test] remove chunked on http1.0

This commit is contained in:
yawnt 2013-09-17 16:32:55 +02:00
parent 8663ac1c43
commit ca092635e7

View File

@ -86,5 +86,19 @@ describe('lib/caronte/passes/web-outgoing.js', function () {
expect(res.headers.how).to.eql('are you?'); expect(res.headers.how).to.eql('are you?');
}); });
describe('#removeChunked', function() {
var proxyRes = {
headers: {
'transfer-encoding': 'hello'
}
};
caronte.removeChunked({ httpVersion: '1.0' }, {}, proxyRes);
expect(proxyRes.headers['transfer-encoding']).to.eql(undefined);
});
}); });