projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a812eb
)
net.http.server: Fix Keep-Alive requests with HTTP 1.0
author
Kim Alvefur
<zash@zash.se>
Mon, 22 Jul 2013 15:28:37 +0000
(17:28 +0200)
committer
Kim Alvefur
<zash@zash.se>
Mon, 22 Jul 2013 15:28:37 +0000
(17:28 +0200)
net/http/server.lua
patch
|
blob
|
history
diff --git
a/net/http/server.lua
b/net/http/server.lua
index dec7da1999c22c4cb6ae57ae83512b06bef369d7..0f379e96c625e726f554184e8735decb879a7d6b 100644
(file)
--- a/
net/http/server.lua
+++ b/
net/http/server.lua
@@
-168,7
+168,7
@@
function handle_request(conn, request, finish_cb)
local conn_header = request.headers.connection;
conn_header = conn_header and ","..conn_header:gsub("[ \t]", ""):lower().."," or ""
local httpversion = request.httpversion
- local persistent = conn_header:find(",
Keep-A
live,", 1, true)
+ local persistent = conn_header:find(",
keep-a
live,", 1, true)
or (httpversion == "1.1" and not conn_header:find(",close,", 1, true));
local response_conn_header;