X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=wrw%2Fresp.py;h=ebd98ecbee1154ec4ca36c1b64a9cf154cc9240e;hb=a9a78095b1696f56946abfc7c284f86a21fdcc2d;hp=69635f8589ebb133ed4dfae0707e1d57a2fbaef1;hpb=8d8d1f703090499006efeb51299b8a267b00aa09;p=wrw.git 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):