diff options
| author | Michael Merickel <michael@merickel.org> | 2019-04-07 16:28:46 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2019-04-10 02:42:37 -0500 |
| commit | 0b1bd775cb3b7def226b6e25a2ece1e3d8629129 (patch) | |
| tree | e5001a97b1f8463e123ff28566fc1e078d9de26f /waitress/task.py | |
| parent | ab4ff97f6aad5b93188cc73a7e01ce4ea6be8df9 (diff) | |
| download | waitress-seekable.tar.gz | |
maintain our own byte buffer for data that didn't get writtenseekable
Diffstat (limited to 'waitress/task.py')
| -rw-r--r-- | waitress/task.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/waitress/task.py b/waitress/task.py index 3b7d332..c0d67ca 100644 --- a/waitress/task.py +++ b/waitress/task.py @@ -451,7 +451,7 @@ class WSGITask(Task): if app_iter.__class__ is ReadOnlyFileBasedBuffer: cl = self.content_length size = app_iter.prepare(cl) - if size: + if size > 0: if cl != size: if cl is not None: self.remove_content_length_header() |
