diff options
author | Marcel Hellkamp <marc@gsites.de> | 2009-10-21 12:06:24 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2009-10-21 12:06:24 +0200 |
commit | ca8b8c57df884ce93673d892b18b1372394dfd92 (patch) | |
tree | 3c1606573313f04366d7f27eb6d1d27197e81281 | |
parent | 54f716b97e11e81ba655a4681493556b0397ed32 (diff) | |
download | bottle-ca8b8c57df884ce93673d892b18b1372394dfd92.tar.gz |
Damien found a bug with mod_wsgi when a 304 has payload. Bottle now follows rfc2616 section 4.3 correctly
-rw-r--r-- | bottle.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -317,6 +317,8 @@ class Bottle(object): response.status = e.http_status output = self.error_handler.get(response.status, str)(e) output = self.cast(output) + if response.status in (100, 101, 204, 304) or request.method == 'HEAD': + output = [] # rfc2616 section 4.3 except (KeyboardInterrupt, SystemExit, MemoryError): raise except Exception, e: |