When we disable "Transfer-Encoding: chunked" in the fastcgi backend
authorflorian <florian@openbsd.org>
Wed, 19 May 2021 19:42:53 +0000 (19:42 +0000)
committerflorian <florian@openbsd.org>
Wed, 19 May 2021 19:42:53 +0000 (19:42 +0000)
commit7953d84589cf479c3d40ce77665d42ba41c484de
tree32635ffd4666f3fd58b917a24bfc3dbeba1c7a65
parent86392ca602613d15ca3320765bc0f917ac1bcb12
When we disable "Transfer-Encoding: chunked" in the fastcgi backend
because we are going to send an empty body we have to provide
"Content-Length: 0" otherwise some browsers (Firefox, Safari) just
hang until httpd(8) closes the connection.
Problem reported by Matthias Pressfreund, debugged with weerd@ who
pointed out that the problem is browser dependent.
OK tracey
usr.sbin/httpd/server_fcgi.c