Fix broken responses with missing Content-Length.

We were testing for None and using a default value of -1.
This commit is contained in:
Paul J. Davis 2011-01-14 19:16:23 -05:00
parent d1fa62d98a
commit bcafd6eb22

View File

@ -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