From ca092635e7ac4d967b554e3b94a16a931946d464 Mon Sep 17 00:00:00 2001 From: yawnt Date: Tue, 17 Sep 2013 16:32:55 +0200 Subject: [PATCH] [test] remove chunked on http1.0 --- test/lib-caronte-passes-web-outgoing-test.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/lib-caronte-passes-web-outgoing-test.js b/test/lib-caronte-passes-web-outgoing-test.js index b51e17b..64fc7ea 100644 --- a/test/lib-caronte-passes-web-outgoing-test.js +++ b/test/lib-caronte-passes-web-outgoing-test.js @@ -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); + }); + });