libmicrohttpd

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

commit 889b74b68ee8910e0fac7d8c7807b670d7462498
parent 75d385212289b810d005c140c73709e594b02ade
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 27 Sep 2022 17:40:03 +0300

connection.c: removed unused check for chunked replies

Diffstat:
Msrc/microhttpd/connection.c | 10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git 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);