Skip to content

Commit ac3bc6e

Browse files
lpincatargos
authored andcommitted
test: add semicolon after chunk size
The ABNF for chunk extensions as per RFC 7230 is chunk-ext = *( ";" chunk-ext-name [ "=" chunk-ext-val ] ) chunk-ext-name = token chunk-ext-val = token / quoted-string Add a semicolon after the chunk size for clarity. This does not invalidate the test as it verifies that the HTTP parser does not ignore chunk extensions. PR-URL: #40487 Refs: https://grenfeldt.dev/2021/10/08/gunicorn-20.1.0-public-disclosure-of-request-smuggling Reviewed-By: James M Snell <[email protected]>
1 parent 95fe9bb commit ac3bc6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-http-chunked-smuggling.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function start() {
2323
'Host: localhost:8080\r\n' +
2424
'Transfer-Encoding: chunked\r\n' +
2525
'\r\n' +
26-
'2 \n' +
26+
'2;\n' +
2727
'xx\r\n' +
2828
'4c\r\n' +
2929
'0\r\n' +

0 commit comments

Comments
 (0)