[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 04/05: Chunked responses: do not provide extra space for
From: |
gnunet |
Subject: |
[libmicrohttpd] 04/05: Chunked responses: do not provide extra space for the response if size is known |
Date: |
Wed, 27 Oct 2021 19:56:44 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 8a9bb841b8aa936072a0f52898de8433b3434f21
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Oct 26 13:09:12 2021 +0300
Chunked responses: do not provide extra space for the response if size is
known
---
src/microhttpd/connection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index d7374b5a..c23e9e5c 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1150,7 +1150,7 @@ try_ready_chunked_body (struct MHD_Connection *connection,
if (MHD_SIZE_UNKNOWN == response->total_size)
left_to_send = MHD_SIZE_UNKNOWN;
else
- left_to_send = MHD_SIZE_UNKNOWN - connection->response_write_position;
+ left_to_send = response->total_size - connection->response_write_position;
size_to_fill = connection->write_buffer_size - max_chunk_overhead;
/* Limit size for the callback to the max usable size */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.