gunicorn/tests/requests/invalid/chunked_10.py
Paul J. Dorn e710393d14 HTTP parser: stricter chunk-ext OBS handling
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
2023-12-17 17:46:56 +01:00

3 lines
77 B
Python

from gunicorn.http.errors import InvalidChunkSize
request = InvalidChunkSize