[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 57087] mod_proxy_fcgi doesn't send cgi CONTENT_LENGTH variable when the client request used Transfer-Encoding:chunked


--- Comment #12 from Luca Toscano <toscano.luca@xxxxxxxxx> ---
(In reply to Yann Ylavic from comment #11)
> (In reply to Luca Toscano from comment #10)
> > send_environment() not dispatch :)
> Possibly, mod_proxy_http's spool_reqbody_cl() should be copied (and adapted)
> to mod_proxy_fgci, such that it's called before "Step Two" in
> proxy_fcgi_handler(), and its spooled brigade is somehow passed further to
> send_environment(), which can then use the brigade for both C-L and forward.
> Hope this helps...

Thanks a lot for the pointer Yann! So, unveiling all my ignorance about the CL
header, IIUC when TE:chunked is not used (in a POST request), the client sends
the CL header and then mod_proxy_fcgi is able to populate the CGI's
CONTENT_LENGTH header easily, but when TE:chunked is used, there is no quick
way to get the number of bytes in the body/payload unless something explicitly
counts them. So mod_proxy_http's trick is to pull the body/payload from the
input chain, and then use it later on to easily count the CL.

You are receiving this mail because:
You are the assignee for the bug.
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx