Skip to content

Commit

Permalink
test: fix test description
Browse files Browse the repository at this point in the history
The request uses chunked transfer encoding and the HTTP response status
code is not 400 but 200.

PR-URL: #40486
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
lpinca authored and targos committed Oct 23, 2021
1 parent 1ddbae2 commit aefb097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-chunked-smuggling.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit aefb097

Please sign in to comment.