Do not try to chunk encode an empty http body coming from an fcgi
authorflorian <florian@openbsd.org>
Mon, 17 May 2021 09:26:52 +0000 (09:26 +0000)
committerflorian <florian@openbsd.org>
Mon, 17 May 2021 09:26:52 +0000 (09:26 +0000)
commit5a7cb2b148a35dd1d3f272c6aacb7b960adb58b6
treee95643c738e0c9b08ada3e35c1132f71f88bef78
parent2aed95157eef9b3189b281b0e6d2aad7e25aca08
Do not try to chunk encode an empty http body coming from an fcgi
upstream.

Found the hard way by Chris Narkiewicz who tracked failing uploads in
the nextcloud mobile app down to httpd(8) trying to chunk encode a
"204 No Content" resonse.

Testing by Steve Williams
Testing & OK stsp
usr.sbin/httpd/httpd.h
usr.sbin/httpd/server_fcgi.c