libmicrohttpd

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

commit 5383019bf515a7e39a54745c27b7129936d14345
parent 4595a443ed295d5d987908576acd145d18d360c6
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 15 Aug 2021 17:08:36 +0300

connection.c: fixed chunked response without callback

Diffstat:
Msrc/microhttpd/connection.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -1012,8 +1012,7 @@ try_ready_chunked_body (struct MHD_Connection *connection, size_t chunk_hdr_len; response = connection->response; - if (NULL == response->crc) - return MHD_YES; + mhd_assert (NULL != response->crc || NULL != response->data); mhd_assert (0 == connection->write_buffer_append_offset);