Merge branch 'python3' of git.dolda2000.com:/srv/git/r/wrw into python3
[wrw.git] / wrw / resp.py
index bdceb90..ebd98ec 100644 (file)
@@ -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 []