Changeset

5754:dee0f05ccf70

net.http.server: Fix Keep-Alive requests with HTTP 1.0
author Kim Alvefur <zash@zash.se>
date Mon, 22 Jul 2013 17:28:37 +0200
parents 5752:729c78581308
children 5755:9a9c2c254412
files net/http/server.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/http/server.lua	Mon Jul 15 23:43:20 2013 +0100
+++ b/net/http/server.lua	Mon Jul 22 17:28:37 2013 +0200
@@ -168,7 +168,7 @@
 	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;