From 8a270c9329ec3cc8054659117b2ffd613a3d8113 Mon Sep 17 00:00:00 2001 From: benoitc Date: Thu, 21 Nov 2019 18:13:55 +0100 Subject: [PATCH] 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. --- gunicorn/http/wsgi.py | 1 - 1 file changed, 1 deletion(-) diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index 3524471f..414513e0 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -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('-', '_')