projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16bb290
)
Interet Suxplorer sends invalid HTTP-headers, ignore them
author
Steven Barth
<steven@midlink.org>
Thu, 6 Nov 2008 17:34:46 +0000
(17:34 +0000)
committer
Steven Barth
<steven@midlink.org>
Thu, 6 Nov 2008 17:34:46 +0000
(17:34 +0000)
libs/http/luasrc/http/protocol.lua
patch
|
blob
|
history
diff --git
a/libs/http/luasrc/http/protocol.lua
b/libs/http/luasrc/http/protocol.lua
index e0c15015b28890330406210cc22d47d52a7aff80..cd482a94fc680eea892de21ffc13f6d4eea32c9b 100644
(file)
--- 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-Z
a-z
][A-Za-z0-9%-_]+): +(.+)$" )
if type(hdr) == "string" and hdr:len() > 0 and
type(val) == "string" and val:len() > 0