diff --git a/THANKS b/THANKS index 11713497..453da465 100644 --- a/THANKS +++ b/THANKS @@ -168,6 +168,7 @@ Steven Cummings Sébastien Fievet Talha Malik TedWantsMore +Teko012 <112829523+Teko012@users.noreply.github.com> Thomas Grainger Thomas Steinacher Travis Cline diff --git a/gunicorn/workers/base.py b/gunicorn/workers/base.py index a6d84bd2..a436326d 100644 --- a/gunicorn/workers/base.py +++ b/gunicorn/workers/base.py @@ -230,7 +230,9 @@ class Worker(object): elif isinstance(exc, LimitRequestLine): mesg = "%s" % str(exc) elif isinstance(exc, LimitRequestHeaders): + reason = "Request Header Fields Too Large" mesg = "Error parsing headers: '%s'" % str(exc) + status_int = 431 elif isinstance(exc, InvalidProxyLine): mesg = "'%s'" % str(exc) elif isinstance(exc, ForbiddenProxyRequest):