mirror of https://github.com/nodejs/node.git
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:
parent
78e8f082ab
commit
13d43d63a4
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue