projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util.prosodyctl: Saner determination of Prosody executable path
[prosody.git]
/
net
/
http.lua
diff --git
a/net/http.lua
b/net/http.lua
index 34ec11b4f4ca45fc7493d2ae08745f5fbda76057..9b1954da5dc113b87e8c45ee2fe7a377d7f90b28 100644
(file)
--- a/
net/http.lua
+++ b/
net/http.lua
@@
-30,7
+30,7
@@
function urldecode(s) return s and (s:gsub("%%(%x%x)", function (c) return char(
local function expectbody(reqt, code)
if reqt.method == "HEAD" then return nil end
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
if code >= 100 and code < 200 then return nil end
return 1
end