Konstantin Kapustin 4be3282440 Check Content-Length header.
For not chunked request do validation Content-Length header and return 400 if invalid.
2012-09-27 19:14:40 +02:00

4 lines
72 B
Python

from gunicorn.http.errors import InvalidHeader
request = InvalidHeader