luci-base: handle bodies of non-POST requests as well
authorJo-Philipp Wich <jo@mein.io>
Tue, 24 Apr 2018 18:29:59 +0000 (20:29 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 26 Apr 2018 06:26:19 +0000 (08:26 +0200)
commit7d13ec601051bc78f8eb384dcd640c4a167b2556
tree89e095d1f78cb8d627a85fb2e27aeb72e06bd4b7
parente56d9f4686af84af62895f2732a35c7d33bb7476
luci-base: handle bodies of non-POST requests as well

Decode the HTTP message bodies of any request carrying a Content-Length
header, not just those in POST requests.

This allows handling parameters in other methods, OPTIONS in particular.

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