summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-remove-header-stays-removed.js
diff options
context:
space:
mode:
authorChristian Tellnes <christian@tellnes.no>2015-03-03 21:01:26 +0100
committerChristian Tellnes <christian@tellnes.no>2015-03-05 22:17:35 +0100
commit4874182065655dcf8a39bfa3e4c9b47bfb9e0f75 (patch)
tree396700ee8f35062a9d3a256ddb9a12aca015e0d3 /test/parallel/test-http-remove-header-stays-removed.js
parent1640dedb3b2a8d6e54ba7b22290d86d5984768be (diff)
downloadnode-new-4874182065655dcf8a39bfa3e4c9b47bfb9e0f75.tar.gz
http: send Content-Length when possible
This changes the behavior for http to send send a Content-Length header instead of using chunked encoding when we know the size of the body when sending the headers. Fixes: https://github.com/iojs/io.js/issues/1044 PR-URL: https://github.com/iojs/io.js/pull/1062 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Brian White <mscdex@mscdex.net>
Diffstat (limited to 'test/parallel/test-http-remove-header-stays-removed.js')
-rw-r--r--test/parallel/test-http-remove-header-stays-removed.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/parallel/test-http-remove-header-stays-removed.js b/test/parallel/test-http-remove-header-stays-removed.js
index a9a5f04fc1..e963989385 100644
--- a/test/parallel/test-http-remove-header-stays-removed.js
+++ b/test/parallel/test-http-remove-header-stays-removed.js
@@ -8,6 +8,7 @@ var server = http.createServer(function(request, response) {
// to the output:
response.removeHeader('connection');
response.removeHeader('transfer-encoding');
+ response.removeHeader('content-length');
// make sure that removing and then setting still works:
response.removeHeader('date');