Re: [libmicrohttpd] How to specify content-length in a HEAD request

2023-11-06 Thread Evgeny Grin
I cannot give you precise date. It depends. But hopefully it will be release before the end of this year. If your badly need HEAD-only responses with arbitrary "Content-Length" header value right now, you can easily achieve it by creating response with MHD_create_response_from_callback() with

Re: [libmicrohttpd] How to specify content-length in a HEAD request

2023-11-06 Thread Rohit Kota
Thank you, MHD_RF_HEAD_ONLY_RESPONSE was what I needed, not MHD_RF_INSANITY_HEADER_CONTENT_LENGTH. But when is the next release 9.78 which includes those commits? On Mon, Nov 6, 2023 at 12:49 PM Evgeny Grin wrote: > Hi Rohit, > > On 05.11.2023 19:15, Rohit Kota wrote: > > Hello, > > We have

Re: [libmicrohttpd] Cannot set Content-Length in header

2023-11-06 Thread Evgeny Grin
Just to keep it in records. I found at least two applications trying to use the flag MHD_RF_INSANITY_HEADER_CONTENT_LENGTH to set the "Content-Length" header for HEAD responses. This is not a correct approach. Application must provide *correct* response for head request. *Correct* means (in