Checkout
Joe Orton
committed
on 06 Dec 18
Fix handling of chunked request bodies. Even though the FastCGI
protocol is "streamy", it (via the CGI/1.1 spec) requires
content-length to… Show more
Fix handling of chunked request bodies.  Even though the FastCGI

protocol is "streamy", it (via the CGI/1.1 spec) requires

content-length to be known and delivered for chunked requests:

* modules/fcgid/fcgid_bridge.c

 (add_request_body): Return the request body length.

 (bridge_request): Fetch the request body earlier, and

 send Content-Length if the request was chunked.

PR: 53332

Submitted by: Dominic Benson  <dominic.benson thirdlight.com>, jorton

Show less