mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Added missing LimitRequestLine and LimitRequestHeader.
This commit is contained in:
parent
ffecd64669
commit
3ff895d735
@ -128,7 +128,8 @@ class Worker(object):
|
||||
def handle_error(self, req, client, addr, exc):
|
||||
request_start = datetime.now()
|
||||
if isinstance(exc, (InvalidRequestLine, InvalidRequestMethod,
|
||||
InvalidHTTPVersion, InvalidHeader, InvalidHeaderName,)):
|
||||
InvalidHTTPVersion, InvalidHeader, InvalidHeaderName,
|
||||
LimitRequestLine, LimitRequestHeaders,)):
|
||||
|
||||
status_int = 400
|
||||
reason = "Bad Request"
|
||||
@ -169,7 +170,7 @@ class Worker(object):
|
||||
self.log.access(resp, req, environ, request_time)
|
||||
|
||||
if self.debug:
|
||||
tb = traceback.format_exc()
|
||||
tb = traceback.format_exc()
|
||||
mesg += "<h2>Traceback:</h2>\n<pre>%s</pre>" % tb
|
||||
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user