From bcafd6eb22a1e0648e402baae55e807621589cd0 Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Fri, 14 Jan 2011 19:16:23 -0500 Subject: [PATCH] Fix broken responses with missing Content-Length. We were testing for None and using a default value of -1. --- 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 68c2d94c..5341cdd8 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -117,7 +117,7 @@ class Response(object): self.should_close = req.should_close() self.headers = [] self.headers_sent = False - self.clength = -1 + self.clength = None #self.te = None self.sent = 0