From: Steven Barth Date: Thu, 6 Nov 2008 17:34:46 +0000 (+0000) Subject: Interet Suxplorer sends invalid HTTP-headers, ignore them X-Git-Tag: 0.9.0~998 X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=0969279c41a31733a4c1b6c9a9fa769a6bbc7ee9 Interet Suxplorer sends invalid HTTP-headers, ignore them --- 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