diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-04-18 10:46:04 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-04-18 16:21:27 +0200 |
commit | f52c8d0b7f0eeec4259992182103d859f454639b (patch) | |
tree | cdea06cb8b6af4b3b07e9f042639a302763b1b49 /modules/luci-base/luasrc/http.lua | |
parent | 3f0abd936df2803f85d93c303ed9d589ff5b0b16 (diff) |
luci-base: switch to lucihttp.urldecode() and lucihttp.urlencode()
Drop the Lua implementation in luci.http.protocol and use the optimized C
variants of liblucihttp instead.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/luasrc/http.lua')
-rw-r--r-- | modules/luci-base/luasrc/http.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/luasrc/http.lua b/modules/luci-base/luasrc/http.lua index 9cc9857867..1b03f792b0 100644 --- a/modules/luci-base/luasrc/http.lua +++ b/modules/luci-base/luasrc/http.lua @@ -267,9 +267,9 @@ function build_querystring(q) return table.concat(s, "") end -urldecode = protocol.urldecode +urldecode = util.urldecode -urlencode = protocol.urlencode +urlencode = util.urlencode function write_json(x) util.serialize_json(x, write) |