libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 87f5c598e4f3fc595c53e7b2a8baf7dcf2c5558e
parent 79efcac17e7046f34e9ac5c889d43a8daf228c2f
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Fri, 27 Nov 2026 14:00:55 +0100

Fixed the documentation for "Transfer-Encoding:" in responses

MHD_add_response_header() accepts only "chunked" for this header.

Diffstat:
Mdoc/libmicrohttpd.texi | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi @@ -2217,11 +2217,10 @@ Both must conform to HTTP field syntax. Empty value is not accepted for headers. MHD_add_response_header() prevents applications from setting a -``Transfer-Encoding'' header to values other than ``identity'' or -``chunked'' as other transfer encodings are not supported by MHD. Note -that usually MHD will pick the transfer encoding correctly -automatically, but applications can use the header to force a -particular behavior. +``Transfer-Encoding'' header to values other than ``chunked'' as other +transfer encodings are not supported by MHD. Note that usually MHD will +pick the transfer encoding correctly automatically, but applications +can use the header to force a particular behaviour. MHD_add_response_header() also prevents applications from setting a ``Content-Length'' header. MHD will automatically set a correct