mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
chunk extensions are silently ignored before and after this change; its just the whitespace handling for the case without extensions that matters applying same strip(WS)->rstrip(BWS) replacement as already done in related cases half-way fix: could probably reject all BWS cases, rejecting only misplaced ones
25 lines
441 B
HTTP
25 lines
441 B
HTTP
POST /chunked_cont_h_at_first HTTP/1.1\r\n
|
|
Transfer-Encoding: chunked\r\n
|
|
\r\n
|
|
5; some; parameters=stuff\r\n
|
|
hello\r\n
|
|
6 \t;\tblahblah; blah\r\n
|
|
world\r\n
|
|
0\r\n
|
|
\r\n
|
|
PUT /chunked_cont_h_at_last HTTP/1.1\r\n
|
|
Transfer-Encoding: chunked\r\n
|
|
Content-Length: -1\r\n
|
|
\r\n
|
|
5; some; parameters=stuff\r\n
|
|
hello\r\n
|
|
6; blahblah; blah\r\n
|
|
world\r\n
|
|
0\r\n
|
|
\r\n
|
|
PUT /ignored_after_dangerous_framing HTTP/1.1\r\n
|
|
Content-Length: 3\r\n
|
|
\r\n
|
|
foo\r\n
|
|
\r\n
|