From e72c95c580fba9db81c6d47be399db624be470d6 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sun, 17 Oct 2021 10:21:33 +0200 Subject: [PATCH] test: fix test description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The request uses chunked transfer encoding and the HTTP response status code is not 400 but 200. PR-URL: https://github.com/nodejs/node/pull/40486 Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig --- test/parallel/test-http-chunked-smuggling.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-chunked-smuggling.js b/test/parallel/test-http-chunked-smuggling.js index 6ea2614835c009..112772ee12e913 100644 --- a/test/parallel/test-http-chunked-smuggling.js +++ b/test/parallel/test-http-chunked-smuggling.js @@ -5,8 +5,8 @@ const http = require('http'); const net = require('net'); const assert = require('assert'); -// Verify that a request with a space before the content length will result -// in a 400 Bad Request. +// Verify that invalid chunk extensions cannot be used to perform HTTP request +// smuggling attacks. const server = http.createServer(common.mustCall((request, response) => { assert.notStrictEqual(request.url, '/admin');