diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index 314e00e9..bf4cfd0a 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -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