summaryrefslogtreecommitdiff
path: root/waitress/task.py
diff options
context:
space:
mode:
Diffstat (limited to 'waitress/task.py')
-rw-r--r--waitress/task.py2
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()