From: Fredrik Tolf Date: Wed, 5 Jun 2013 10:59:12 +0000 (+0200) Subject: Merge branch 'master' of git.dolda2000.com:/srv/git/r/wrw X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=commitdiff_plain;h=7756066bff7ee01d615cbce0d5ddd58441108bd6 Merge branch 'master' of git.dolda2000.com:/srv/git/r/wrw --- 7756066bff7ee01d615cbce0d5ddd58441108bd6 diff --cc wrw/resp.py index a27a143,e901988..50ac6b1 --- a/wrw/resp.py +++ b/wrw/resp.py @@@ -70,5 -70,10 +70,11 @@@ class redirect(dispatch.restart) def handle(self, req): req.status(self.status, "Redirect") req.ohead["Location"] = proto.appendurl(proto.requrl(req), self.url) + req.ohead["Content-Length"] = 0 return [] + + class unmodified(dispatch.restart): + def handle(self, req): + req.status(304, "Not Modified") + req.ohead["Content-Length"] = "0" + return []