From a1ced17d8bae34bd942835fe2472f2744a84256b Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Sat, 15 Jan 2011 17:50:59 +0100 Subject: [PATCH] test only if clengtih is defined. --- gunicorn/http/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index 1f835c54..e8cf8ea8 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -166,7 +166,7 @@ class Response(object): # Only use chunked responses when the client is # speaking HTTP/1.1 or newer and there was # no Content-Length header set. - if self.clength: + if self.clength is not None: return False elif self.req.version <= (1,0): return False