Merge branch 'python3' of git.dolda2000.com:/srv/git/r/wrw into python3
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 5 Jun 2013 10:58:54 +0000 (12:58 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 5 Jun 2013 10:58:54 +0000 (12:58 +0200)
1  2 
wrw/resp.py
wrw/sp/xhtml.py

diff --cc 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 []
diff --cc wrw/sp/xhtml.py
Simple merge