luci-base: fix luci.http.close()
authorJo-Philipp Wich <jo@mein.io>
Wed, 2 Nov 2022 23:38:00 +0000 (00:38 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 2 Nov 2022 23:38:00 +0000 (00:38 +0100)
commite7afd0d327bb35c502ca41a3c5e3ea098898fbd7
treec8d082a939d4184f83d588bf5d78164964f96920
parentf83e4a6c3602a8d840fc25d1a9299d6a941f2370
luci-base: fix luci.http.close()

Ensure that `http.write()` or template rendering operations after a call
to `http.close()` do not produce additional output. This is required for
certain legacy Lua apps which invoke write and close operations in the
middle of a server side cbi rendering process.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/ucode/dispatcher.uc
modules/luci-base/ucode/http.uc
modules/luci-base/ucode/runtime.uc