luci-base: refactor luci.http
authorJo-Philipp Wich <jo@mein.io>
Wed, 18 Apr 2018 12:05:41 +0000 (14:05 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 18 Apr 2018 14:21:27 +0000 (16:21 +0200)
commit8f66de12c190952e23e6d7c41a52b2868c203beb
tree43526a56c291a30bcdb1d1350ba2c60c56cef77d
parentdb0d5b33d04550a1e81a8ea8662f1a2d1305228d
luci-base: refactor luci.http

 - Rewrite getcookie() to use liblucihttp header value parsing
 - Rewrite setfilehandler() to use local variables and have cleaner code
 - Fix build_querystring() to actually *en*code the given params

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/http.lua