libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Chunked encoding generated for HTTP 1.0 client


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Chunked encoding generated for HTTP 1.0 client
Date: Wed, 04 Feb 2015 20:38:11 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0

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, address@hidden 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

[Prev in Thread] Current Thread [Next in Thread]