aboutsummaryrefslogtreecommitdiffstats
path: root/net/http/server.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-07-22 17:28:37 +0200
committerKim Alvefur <zash@zash.se>2013-07-22 17:28:37 +0200
commit74b83382abc15225f5a3e222b26058c459a7b805 (patch)
treef554bec7c8bdc63aa7b22238a59c5e6bb6b73ef3 /net/http/server.lua
parent6575f3a4e9f527161bb9c711c735f157df91ce9a (diff)
downloadprosody-74b83382abc15225f5a3e222b26058c459a7b805.tar.gz
prosody-74b83382abc15225f5a3e222b26058c459a7b805.zip
net.http.server: Fix Keep-Alive requests with HTTP 1.0
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 dec7da19..0f379e96 100644
--- 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-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;