changeset 2777 | a0ea72846b46 |
parent 1522 | 569d58d21612 |
child 2807 | 8e2dba8904a7 |
--- a/net/http.lua Thu Dec 10 16:52:08 2009 +0500 +++ b/net/http.lua Thu Dec 10 22:13:04 2009 +0000 @@ -30,7 +30,7 @@ local function expectbody(reqt, code) if reqt.method == "HEAD" then return nil end - if code == 204 or code == 304 then return nil end + if code == 204 or code == 304 or code == 301 then return nil end if code >= 100 and code < 200 then return nil end return 1 end