diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index eda98f71..5d7f52fb 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c @@ -2958,7 +2958,7 @@ MHD_connection_handle_write (struct MHD_Connection *connection) { const size_t wb_ready = connection->write_buffer_append_offset - connection->write_buffer_send_offset; - mhd_assert (connection->write_buffer_append_offset > \ + mhd_assert (connection->write_buffer_append_offset >= \ connection->write_buffer_send_offset); /* if the response body is not available, we use MHD_send_on_connection_() */