--limit-request-line check default to MAX_REQUEST_LINE
Author: christfriedbalizouCreated Mar 22, 2024Updated Aug 16, 2026
Increasing the limit request line above the MAX_REQUEST_LINE will default to MAX_REQUEST_LINE.
# get max request line size
self.limit_request_line = cfg.limit_request_line
if (self.limit_request_line < 0
or self.limit_request_line >= MAX_REQUEST_LINE):
self.limit_request_line = MAX_REQUEST_LINEThis is an issue because the other option is to set the limit_request_line to 0 to make it unlimited. Is this configuration aimed to be 0 or less than MAX_REQUEST_LINE?
Can a higher limit be set as in Nginx? If so, I would be happy to submit a PR.
Source: benoitc/gunicorn