X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fresp.py;fp=wrw%2Fresp.py;h=ebd98ecbee1154ec4ca36c1b64a9cf154cc9240e;hp=69635f8589ebb133ed4dfae0707e1d57a2fbaef1;hb=a9a78095b1696f56946abfc7c284f86a21fdcc2d;hpb=ca3dce3812e3fc65f4c021aa76ee1430b47ad3af diff --git a/wrw/resp.py b/wrw/resp.py index 69635f8..ebd98ec 100644 --- a/wrw/resp.py +++ b/wrw/resp.py @@ -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):