Skip to content

Commit

Permalink
[test] remove chunked on http1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnt committed Sep 17, 2013
1 parent 8663ac1 commit ca09263
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/lib-caronte-passes-web-outgoing-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

});

0 comments on commit ca09263

Please sign in to comment.