[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 06/06: connection.c: removed unused check for chunked re
From: |
gnunet |
Subject: |
[libmicrohttpd] 06/06: connection.c: removed unused check for chunked replies |
Date: |
Tue, 27 Sep 2022 18:02:20 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 889b74b68ee8910e0fac7d8c7807b670d7462498
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Sep 27 17:40:03 2022 +0300
connection.c: removed unused check for chunked replies
---
src/microhttpd/connection.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 18bb36d6..f187da59 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -5193,13 +5193,9 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
"Closing connection (failed to create
response footer)."));
continue;
}
- /* TODO: remove next 'if' */
- if ( (! connection->rp.props.chunked) ||
- (connection->write_buffer_send_offset ==
- connection->write_buffer_append_offset) )
- connection->state = MHD_CONNECTION_FULL_REPLY_SENT;
- else
- connection->state = MHD_CONNECTION_FOOTERS_SENDING;
+ mhd_assert (connection->write_buffer_send_offset < \
+ connection->write_buffer_append_offset);
+ connection->state = MHD_CONNECTION_FOOTERS_SENDING;
continue;
case MHD_CONNECTION_FOOTERS_SENDING:
mhd_assert (connection->rp.props.send_reply_body);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (77303a4a -> 889b74b6), gnunet, 2022/09/27
- [libmicrohttpd] 03/06: Removed one debug member from release builds, gnunet, 2022/09/27
- [libmicrohttpd] 06/06: connection.c: removed unused check for chunked replies,
gnunet <=
- [libmicrohttpd] 01/06: configure: fixed typos in messages, gnunet, 2022/09/27
- [libmicrohttpd] 02/06: Renamed request processing states for clarity and readability, gnunet, 2022/09/27
- [libmicrohttpd] 04/06: connection.c: fixed typo in comment, gnunet, 2022/09/27
- [libmicrohttpd] 05/06: connection.c: added asserts for connection's states processing logic, gnunet, 2022/09/27