aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);