Hi!

That's not an inconsistency, but a bug.

I analyzed it a bit more, and it only happens if the HTTP 1.0-client
explicitly requests "Connection: Keep-Alive". MHD originally ignored
that request in 0.9.15, and when I changed the code to support
keep-alives for HTTP 1.0-clients if explicitly requested, I accidentally
then also enabled sending chunked encoding to the HTTP 1.0-client (but
only if "Connection: Keep-Alive" is set as well).

I've fixed this in SVN HEAD (SVN 35097).

Thanks for reporting!

Christian

On 02/02/2015 08:52 PM, [email protected] wrote:
> Hi,
> 
> I would like to report the following inconsistency.
> 
> I am using the MHD_create_response_from_callback with size argument set to 
> MHD_SIZE_UNKNOWN.
> The generated response is chunked-encoded by version 0.9.38 even for HTTP 1.0 
> client, which does not support chunk encoding. 
> This generated response was not chunked-encoded by version 0.9.15.
> 
> I can work around this issue by using MHD_set_response_options (..., 
> MHD_RF_HTTP_VERSION_1_0_ONLY,...) when I detect that the client is HTTP 1.0.
> As libmicrohttpd generates the Connection header (Keep-Alive/Close) correctly 
> based client version, I would have hoped that the same would be true for 
> encoding.
> 
> Thank you,
> 
> Louis Benoit
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to