Merge "py3: increase _MAXHEADERS for eventlet, too"
This commit is contained in:
@@ -39,13 +39,16 @@ import six
|
||||
|
||||
if six.PY2:
|
||||
httplib = eventlet.import_patched('httplib')
|
||||
from eventlet.green import httplib as green_httplib
|
||||
else:
|
||||
httplib = eventlet.import_patched('http.client')
|
||||
from eventlet.green.http import client as green_httplib
|
||||
|
||||
# Apparently http.server uses this to decide when/whether to send a 431.
|
||||
# Give it some slack, so the app is more likely to get the chance to reject
|
||||
# with a 400 instead.
|
||||
httplib._MAXHEADERS = constraints.MAX_HEADER_COUNT * 1.6
|
||||
green_httplib._MAXHEADERS = constraints.MAX_HEADER_COUNT * 1.6
|
||||
|
||||
|
||||
class BufferedHTTPResponse(HTTPResponse):
|
||||
|
||||
Reference in New Issue
Block a user