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 authored and Michaël Zasso committed 2021-10-23 08:37:19 +02:00
1 parent 1ddbae2d76
commit aefb097d6a
1 file changed
+2 -2
+2 -2
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');