diff options
Diffstat (limited to 'libs')
-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 fd0a046f6b..93c9e79991 100644 --- a/libs/http/luasrc/http/protocol.lua +++ b/libs/http/luasrc/http/protocol.lua @@ -500,7 +500,7 @@ function urldecode_message_body( src, msg ) if spos then local pair = data:sub( spos, epos - 1 ) local key = pair:match("^(.-)=") - local val = pair:match("=(.*)$") + local val = pair:match("=([^%s]*)%s*$") if key and #key > 0 then __initval( msg.params, key ) |