Skip to content

Commit

Permalink
like we do for 304 do the same for 204. fix issue benoitc#194.
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Aug 21, 2011
1 parent 6dc33b1 commit 0c31bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/http/wsgi.py
Expand Up @@ -208,7 +208,7 @@ def is_chunked(self):
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
Expand Down

0 comments on commit 0c31bfe

Please sign in to comment.