Skip to content

Commit ca09263

Browse files
committed
[test] remove chunked on http1.0
1 parent 8663ac1 commit ca09263

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/lib-caronte-passes-web-outgoing-test.js

+14
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,19 @@ describe('lib/caronte/passes/web-outgoing.js', function () {
8686
expect(res.headers.how).to.eql('are you?');
8787
});
8888

89+
90+
describe('#removeChunked', function() {
91+
var proxyRes = {
92+
headers: {
93+
'transfer-encoding': 'hello'
94+
}
95+
};
96+
97+
98+
caronte.removeChunked({ httpVersion: '1.0' }, {}, proxyRes);
99+
100+
expect(proxyRes.headers['transfer-encoding']).to.eql(undefined);
101+
});
102+
89103
});
90104

0 commit comments

Comments
 (0)