From 0c31bfea8a73ff482b3ea6fc533ff101459fbc94 Mon Sep 17 00:00:00 2001 From: benoitc Date: Sun, 21 Aug 2011 07:57:12 +0200 Subject: [PATCH] like we do for 304 do the same for 204. fix issue #194. --- gunicorn/http/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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