Dolda2000 GitWeb
/
wrw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.dolda2000.com:/srv/git/r/wrw
[wrw.git]
/
wrw
/
resp.py
diff --git
a/wrw/resp.py
b/wrw/resp.py
index
a27a143
..
50ac6b1
100644
(file)
--- a/
wrw/resp.py
+++ b/
wrw/resp.py
@@
-42,7
+42,7
@@
class message(dispatch.restart):
self.detail = detail
def handle(self, req):
self.detail = detail
def handle(self, req):
- return skelfor(req).
error
(req, self.message, *self.detail)
+ return skelfor(req).
message
(req, self.message, *self.detail)
class httperror(usererror):
def __init__(self, status, message = None, detail = None):
class httperror(usererror):
def __init__(self, status, message = None, detail = None):
@@
-72,3
+72,9
@@
class redirect(dispatch.restart):
req.ohead["Location"] = proto.appendurl(proto.requrl(req), self.url)
req.ohead["Content-Length"] = 0
return []
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 []