aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-27 17:40:03 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-27 17:40:03 +0300
commit889b74b68ee8910e0fac7d8c7807b670d7462498 (patch)
tree696495776b31d65e694912a6d1e2b427f20398e5 /src/microhttpd/connection.c
parent75d385212289b810d005c140c73709e594b02ade (diff)
downloadlibmicrohttpd-889b74b68ee8910e0fac7d8c7807b670d7462498.tar.gz
libmicrohttpd-889b74b68ee8910e0fac7d8c7807b670d7462498.zip
connection.c: removed unused check for chunked replies
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c10
1 files 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)
5193 "Closing connection (failed to create response footer).")); 5193 "Closing connection (failed to create response footer)."));
5194 continue; 5194 continue;
5195 } 5195 }
5196 /* TODO: remove next 'if' */ 5196 mhd_assert (connection->write_buffer_send_offset < \
5197 if ( (! connection->rp.props.chunked) || 5197 connection->write_buffer_append_offset);
5198 (connection->write_buffer_send_offset == 5198 connection->state = MHD_CONNECTION_FOOTERS_SENDING;
5199 connection->write_buffer_append_offset) )
5200 connection->state = MHD_CONNECTION_FULL_REPLY_SENT;
5201 else
5202 connection->state = MHD_CONNECTION_FOOTERS_SENDING;
5203 continue; 5199 continue;
5204 case MHD_CONNECTION_FOOTERS_SENDING: 5200 case MHD_CONNECTION_FOOTERS_SENDING:
5205 mhd_assert (connection->rp.props.send_reply_body); 5201 mhd_assert (connection->rp.props.send_reply_body);