mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[test] remove chunked on http1.0
This commit is contained in:
parent
8663ac1c43
commit
ca092635e7
@ -86,5 +86,19 @@ describe('lib/caronte/passes/web-outgoing.js', function () {
|
||||
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);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user