X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fresp.py;fp=wrw%2Fresp.py;h=50ac6b1ce1c25c9a96a21ecd12cb5cc6860195bd;hp=e901988fe62e2c74d3f99f33774460e217350c7f;hb=7756066bff7ee01d615cbce0d5ddd58441108bd6;hpb=98cc090c6a4c3d87e5ee411c056e60f17da31e76 diff --git a/wrw/resp.py b/wrw/resp.py index e901988..50ac6b1 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):