diff options
author | Steven Barth <steven@midlink.org> | 2008-10-21 20:25:29 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-10-21 20:25:29 +0000 |
commit | 0ba0030745c3c23a3343484341575e127fb483f3 (patch) | |
tree | c04546ba14d29e8c5c404e507089c6e9b5c3a832 | |
parent | ac3489049f8c7d755b05400ca298fdb93b07e80b (diff) |
Some browsers send crippled content-type headers when it comes to XHR, catch them as well
-rw-r--r-- | libs/http/luasrc/http/protocol.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/http/luasrc/http/protocol.lua b/libs/http/luasrc/http/protocol.lua index b9a50effe3..e0c15015b2 100644 --- a/libs/http/luasrc/http/protocol.lua +++ b/libs/http/luasrc/http/protocol.lua @@ -563,7 +563,7 @@ function parse_message_header( src ) -- Populate common environment variables msg.env = { CONTENT_LENGTH = msg.headers['Content-Length']; - CONTENT_TYPE = msg.headers['Content-Type']; + CONTENT_TYPE = msg.headers['Content-Type'] or msg.headers['Content-type']; REQUEST_METHOD = msg.request_method:upper(); REQUEST_URI = msg.request_uri; SCRIPT_NAME = msg.request_uri:gsub("?.+$",""); |