summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-10-20 22:35:22 +0000
committerSteven Barth <steven@midlink.org>2008-10-20 22:35:22 +0000
commitf35cea8c53ef5d7be0c5b1e4a915f5583eab3df1 (patch)
treed2d82d541797bd6a28adf277c678e3b9998b8356 /libs
parentde4b0abeb9825f6d7438b0f563623a048782258e (diff)
Content Type for www-urlencoded should match additions like "; charset=utf8" as well
Diffstat (limited to 'libs')
-rw-r--r--libs/http/luasrc/http/protocol.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/http/luasrc/http/protocol.lua b/libs/http/luasrc/http/protocol.lua
index 6240953d0..b9a50effe 100644
--- a/libs/http/luasrc/http/protocol.lua
+++ b/libs/http/luasrc/http/protocol.lua
@@ -619,7 +619,7 @@ function parse_message_body( src, msg, filecb )
-- Is it application/x-www-form-urlencoded ?
elseif msg.env.REQUEST_METHOD == "POST" and msg.env.CONTENT_TYPE and
- msg.env.CONTENT_TYPE == "application/x-www-form-urlencoded"
+ msg.env.CONTENT_TYPE:match("^application/x%-www%-form%-urlencoded")
then
return urldecode_message_body( src, msg, filecb )