aboutsummaryrefslogtreecommitdiffstats
path: root/net/http/server.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2013-04-17 15:28:20 -0400
committerWaqas Hussain <waqas20@gmail.com>2013-04-17 15:28:20 -0400
commiteb6601038d104544eb034e3846344d2ba833d82c (patch)
tree9e8eb9b1bf210915b9230fea982a2998c4353433 /net/http/server.lua
parentf76ad9a7f360ddb10e694bfffccd3b5388e87eca (diff)
downloadprosody-eb6601038d104544eb034e3846344d2ba833d82c.tar.gz
prosody-eb6601038d104544eb034e3846344d2ba833d82c.zip
net.http.server: The correct Connection header value to look for is Keep-Alive, not keep-alive.
Diffstat (limited to 'net/http/server.lua')
-rw-r--r--net/http/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index 830579c9..a983b8d5 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -159,7 +159,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-alive,", 1, true)
+ local persistent = conn_header:find(",Keep-Alive,", 1, true)
or (httpversion == "1.1" and not conn_header:find(",close,", 1, true));
local response_conn_header;