X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=wrw%2Fresp.py;h=50ac6b1ce1c25c9a96a21ecd12cb5cc6860195bd;hb=7756066bff7ee01d615cbce0d5ddd58441108bd6;hp=159126ad0205c29c18e349aaa48b8d299ab92c95;hpb=1864be32db482df017bc7dd57bbd2ccadeec4429;p=wrw.git diff --git a/wrw/resp.py b/wrw/resp.py index 159126a..50ac6b1 100644 --- a/wrw/resp.py +++ b/wrw/resp.py @@ -42,7 +42,7 @@ class message(dispatch.restart): 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): @@ -70,6 +70,7 @@ 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):