mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
like we do for 304 do the same for 204. fix issue #194.
This commit is contained in:
parent
6dc33b1ca4
commit
0c31bfea8a
@ -208,7 +208,7 @@ class Response(object):
|
|||||||
return False
|
return False
|
||||||
elif self.req.version <= (1,0):
|
elif self.req.version <= (1,0):
|
||||||
return False
|
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
|
# Do not use chunked responses when the response is guaranteed to
|
||||||
# not have a response body.
|
# not have a response body.
|
||||||
return False
|
return False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user