[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] How to specify content-length in a HEAD request
From: |
Evgeny Grin |
Subject: |
Re: [libmicrohttpd] How to specify content-length in a HEAD request |
Date: |
Mon, 6 Nov 2023 20:59:21 +0300 |
User-agent: |
Mozilla Thunderbird |
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 correct size and any fake
content reader callback function or by MHD_create_response_from_buffer()
with correct size and some random buffer. You do not need to wait for
the next version. Just make sure that such responses are used only for
HEAD requests.
--
Evgeny
On 06.11.2023 17:32, Rohit Kota wrote:
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?
OpenPGP_0x460A317C3326D2AE.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature