commit 5f9f3f06a47cecb502caf110ba6b35e8d38f48e8
parent 0ee242e3a9fe8ea2a624e8bb92e6e1314de10276
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sat, 12 Dec 2020 14:59:55 +0300
fixed: really use sendmsg() for header and body
Previously 'data_buffer_size' was incorrectly used as the size of
the response. 'data_buffer_size' is always zero for static responses.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -2934,7 +2934,7 @@ MHD_connection_handle_write (struct MHD_Connection *connection)
[connection->write_buffer_send_offset],
wb_ready,
connection->response->data,
- connection->response->data_buffer_size);
+ connection->response->data_size);
}
if (ret < 0)