X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=wrw%2Fresp.py;h=159126ad0205c29c18e349aaa48b8d299ab92c95;hb=1864be32db482df017bc7dd57bbd2ccadeec4429;hp=24896bab3b0512bfef2cf7c408586fa41caffbaa;hpb=525d7938bc668f6079f0fd00a0baad75b1aebe24;p=wrw.git diff --git a/wrw/resp.py b/wrw/resp.py index 24896ba..159126a 100644 --- a/wrw/resp.py +++ b/wrw/resp.py @@ -71,3 +71,9 @@ class redirect(dispatch.restart): req.status(self.status, "Redirect") req.ohead["Location"] = proto.appendurl(proto.requrl(req), self.url) return [] + +class unmodified(dispatch.restart): + def handle(self, req): + req.status(304, "Not Modified") + req.ohead["Content-Length"] = "0" + return []