diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2018-08-31 21:20:06 -0600 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2018-08-31 21:20:06 -0600 |
commit | b30b9f710558a6ae1ce353b59547b872c679c2a0 (patch) | |
tree | 3ffced414f7f45675bb55bd0459f13cf447b5fea | |
parent | 77f739a5e1ad7ffe23b34ae127447e60d4247d36 (diff) | |
download | waitress-b30b9f710558a6ae1ce353b59547b872c679c2a0.tar.gz |
Set wsgi.input_terminated in the WSGI environ
This is a no-op because Waitress already buffers the entire request if
it is chunked and will correctly set the CONTENT_LENGTH, but it may
allow optimizations in certain WSGI applications/libraries.
-rw-r--r-- | waitress/task.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/waitress/task.py b/waitress/task.py index 4cfd9f8..d4a44da 100644 --- a/waitress/task.py +++ b/waitress/task.py @@ -536,6 +536,7 @@ class WSGITask(Task): environ['wsgi.run_once'] = False environ['wsgi.input'] = request.get_body_stream() environ['wsgi.file_wrapper'] = ReadOnlyFileBasedBuffer + environ['wsgi.input_terminated'] = True # wsgi.input is EOF terminated self.environ = environ return environ |