mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
test only if clengtih is defined.
This commit is contained in:
parent
f942b3a8b2
commit
a1ced17d8b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user