gunicorn/tests/requests/invalid/chunked_03.py
benoitc 555d2fa27f don't tolerate wrong te headers
changes:

- Just follow the new TE specification (https://datatracker.ietf.org/doc/html/rfc9112#name-transfer-encoding)
 here and accept to introduce a breaking change.
- gandle multiple TE on one line

** breaking changes ** : invalid  headers and position will now return
an error.
2024-08-06 23:47:01 +02:00

3 lines
73 B
Python

from gunicorn.http.errors import InvalidHeader
request = InvalidHeader