mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
1ddbae2d76
commit
aefb097d6a
1 file changed
+2
-2
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user