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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
lpinca committed Oct 19, 2021
1 parent 78e8f08 commit 13d43d6
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 13d43d6

Please sign in to comment.