summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-client-default-headers-exist.js
diff options
context:
space:
mode:
authorLuigi Pinca <luigipinca@gmail.com>2019-05-13 13:00:17 +0200
committerAnna Henningsen <anna@addaleax.net>2019-05-20 00:05:15 +0200
commit4fc0238a66c3cdc55ddea92d98a7003f34a611ac (patch)
tree837d3ea4c99428ad12c5f378b9186b5fe2313bb2 /test/parallel/test-http-client-default-headers-exist.js
parent6f7e8b4521a52e16ab73f79225924179b4580ecd (diff)
downloadandroid-node-v8-4fc0238a66c3cdc55ddea92d98a7003f34a611ac.tar.gz
android-node-v8-4fc0238a66c3cdc55ddea92d98a7003f34a611ac.tar.bz2
android-node-v8-4fc0238a66c3cdc55ddea92d98a7003f34a611ac.zip
http: do not default to chunked encoding for TRACE
Fixes: https://github.com/nodejs/node/issues/25783 PR-URL: https://github.com/nodejs/node/pull/27673 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-http-client-default-headers-exist.js')
-rw-r--r--test/parallel/test-http-client-default-headers-exist.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-http-client-default-headers-exist.js b/test/parallel/test-http-client-default-headers-exist.js
index e0cf82e462..ba4d4fa660 100644
--- a/test/parallel/test-http-client-default-headers-exist.js
+++ b/test/parallel/test-http-client-default-headers-exist.js
@@ -31,7 +31,8 @@ const expectedHeaders = {
'HEAD': ['host', 'connection'],
'OPTIONS': ['host', 'connection'],
'POST': ['host', 'connection', 'content-length'],
- 'PUT': ['host', 'connection', 'content-length']
+ 'PUT': ['host', 'connection', 'content-length'],
+ 'TRACE': ['host', 'connection']
};
const expectedMethods = Object.keys(expectedHeaders);