like we do for 304 do the same for 204. fix issue #194.

This commit is contained in:
benoitc 2011-08-21 07:57:12 +02:00
parent 6dc33b1ca4
commit 0c31bfea8a

View File

@ -208,7 +208,7 @@ class Response(object):
return False
elif self.req.version <= (1,0):
return False
elif self.status.startswith("304"):
elif self.status.startswith("304") or self.status.startswith("204"):
# Do not use chunked responses when the response is guaranteed to
# not have a response body.
return False