test: fix test description

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 <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Luigi Pinca 2021-10-17 10:21:33 +02:00
parent 78e8f082ab
commit 13d43d63a4
1 changed files with 2 additions and 2 deletions

View File

@ -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');