projects
/
oweals
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
HTTPd: No keep-alive after POST request, because we do not check state
[oweals/luci.git]
/
libs
/
lucid-http
/
luasrc
/
lucid
/
http
/
server.lua
diff --git
a/libs/lucid-http/luasrc/lucid/http/server.lua
b/libs/lucid-http/luasrc/lucid/http/server.lua
index 21a752c68b8106b285cdcb14139d9220bc40900b..95484a02f0bdd49c834aecfef45a90f81c010c4c 100644
(file)
--- a/
libs/lucid-http/luasrc/lucid/http/server.lua
+++ b/
libs/lucid-http/luasrc/lucid/http/server.lua
@@
-344,7
+344,7
@@
function Server.parse_headers(self, source)
end
until false
end
until false
- env.SCRIPT_NAME, env.QUERY_STRING = env.REQUEST_URI:match("(
.
*)%??(.*)")
+ env.SCRIPT_NAME, env.QUERY_STRING = env.REQUEST_URI:match("(
[^?]
*)%??(.*)")
return req
end
return req
end
@@
-432,6
+432,8
@@
function Server.process(self, client, env)
else
return self:error(client, 411, statusmsg[411])
end
else
return self:error(client, 411, statusmsg[411])
end
+
+ close = true
else
return self:error(client, 405, statusmsg[405])
end
else
return self:error(client, 405, statusmsg[405])
end