proc: inhibit chunked transfer encoding on existing TEs or known length
authorJo-Philipp Wich <[email protected]>
Sat, 5 Apr 2025 12:28:34 +0000 (14:28 +0200)
committerJo-Philipp Wich <[email protected]>
Sat, 5 Apr 2025 12:32:36 +0000 (14:32 +0200)
commitfad0d05da757dcd73abc2beb02ce4e4edf83ac3d
tree891a75f1a51ac5037cae13a6573a5e1a28d37614
parentb3e3c05d6781caa5db54fc9913772ddc1af2e045
proc: inhibit chunked transfer encoding on existing TEs or known length

When a backend CGI, Lua or ucode handler produces a response which either
includes a Content-Length or a Transfer-Encoding header then disable the
uhttpd side chunked transfer encoding and assume the backend response to
be already properly encoded or length delimitted.

Fixes: https://github.com/openwrt/luci/issues/7655
Signed-off-by: Jo-Philipp Wich <[email protected]>
proc.c