wsgi.input_terminated is always true

As spotted by @tilgovi Gunicorn always ensure the reader terminate. So set wsgi.input_terminated to true to signal it to the application.
This commit is contained in:
benoitc 2019-11-21 18:13:55 +01:00
parent 0d8a022791
commit 8a270c9329

View File

@ -131,7 +131,6 @@ def create(req, sock, client, server, cfg):
continue
elif hdr_name == "CONTENT-LENGTH":
environ['CONTENT_LENGTH'] = hdr_value
environ['wsgi.input_terminated'] = False
continue
key = 'HTTP_' + hdr_name.replace('-', '_')