X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fresp.py;fp=wrw%2Fresp.py;h=ebd98ecbee1154ec4ca36c1b64a9cf154cc9240e;hp=bdceb90778ac370a855292c6f6e9e08322de761d;hb=a9a78095b1696f56946abfc7c284f86a21fdcc2d;hpb=3b67497cb853ea7dd49f579566e5f0b60a3c97d7 diff --git a/wrw/resp.py b/wrw/resp.py index bdceb90..ebd98ec 100644 --- a/wrw/resp.py +++ b/wrw/resp.py @@ -72,3 +72,9 @@ class redirect(dispatch.restart): 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 []