diff options
Diffstat (limited to 'test/parallel/test-http-client-reject-chunked-with-content-length.js')
-rw-r--r-- | test/parallel/test-http-client-reject-chunked-with-content-length.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-client-reject-chunked-with-content-length.js b/test/parallel/test-http-client-reject-chunked-with-content-length.js index d29e37291d..8683b5726e 100644 --- a/test/parallel/test-http-client-reject-chunked-with-content-length.js +++ b/test/parallel/test-http-client-reject-chunked-with-content-length.js @@ -17,7 +17,7 @@ server.listen(0, () => { // The callback should not be called because the server is sending // both a Content-Length header and a Transfer-Encoding: chunked // header, which is a violation of the HTTP spec. - const req = http.get({port: server.address().port}, common.mustNotCall()); + const req = http.get({ port: server.address().port }, common.mustNotCall()); req.on('error', common.mustCall((err) => { assert(/^Parse Error/.test(err.message)); assert.strictEqual(err.code, 'HPE_UNEXPECTED_CONTENT_LENGTH'); |