summaryrefslogtreecommitdiffhomepage
path: root/libs/http
diff options
context:
space:
mode:
Diffstat (limited to 'libs/http')
-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 fd0a046f6..93c9e7999 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 )