* luci/libs: fix get parameter handling in http.protocol
This commit is contained in:
parent
6571e9ba6f
commit
6d3ac58b42
1 changed files with 5 additions and 1 deletions
|
@ -360,8 +360,12 @@ function parse_message( data, filecb )
|
||||||
local clen = ( hdrs['Content-Length'] or HTTP_MAX_CONTENT ) + 0
|
local clen = ( hdrs['Content-Length'] or HTTP_MAX_CONTENT ) + 0
|
||||||
|
|
||||||
-- Process get parameters
|
-- Process get parameters
|
||||||
if method == "get" or method == "post" then
|
if ( method == "get" or method == "post" ) and
|
||||||
|
message.request_uri:match("?")
|
||||||
|
then
|
||||||
message.params = urldecode_params( message.request_uri )
|
message.params = urldecode_params( message.request_uri )
|
||||||
|
else
|
||||||
|
message.params = { }
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Process post method
|
-- Process post method
|
||||||
|
|
Loading…
Reference in a new issue