From c6affb6a7ef825332a525e5db86407850c5289be Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 6 Nov 2008 17:35:17 +0000 Subject: [PATCH] Interet Suxplorer sends invalid HTTP-headers, ignore them --- libs/http/luasrc/http/protocol.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/http/luasrc/http/protocol.lua b/libs/http/luasrc/http/protocol.lua index e0c15015b..cd482a94f 100644 --- a/libs/http/luasrc/http/protocol.lua +++ b/libs/http/luasrc/http/protocol.lua @@ -248,7 +248,7 @@ process_states['headers'] = function( msg, chunk ) if chunk ~= nil then -- Look for a valid header format - local hdr, val = chunk:match( "^([A-Z][A-Za-z0-9%-_]+): +(.+)$" ) + local hdr, val = chunk:match( "^([A-Za-z][A-Za-z0-9%-_]+): +(.+)$" ) if type(hdr) == "string" and hdr:len() > 0 and type(val) == "string" and val:len() > 0 -- 2.25.1