diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-03-08 10:35:47 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-03-08 10:35:47 +0300 |
commit | b26d68a71c1e001383d35bdfbc958d7caa2aedde (patch) | |
tree | 5ca32e8ae414f0830019e735ef4a998d6ce277ae /src/microhttpd/connection.c | |
parent | 1a46bfd6e0929e2004ffda318282cbf21d9f5299 (diff) | |
download | libmicrohttpd-b26d68a71c1e001383d35bdfbc958d7caa2aedde.tar.gz libmicrohttpd-b26d68a71c1e001383d35bdfbc958d7caa2aedde.zip |
upgrade response: set response size to zero
Upgrade responses do not have body, so zero must be used as the body size.
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index def03b68..3a1c3c43 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -3968,8 +3968,6 @@ MHD_connection_handle_write (struct MHD_Connection *connection) | |||
3968 | (NULL != resp->crc) ); | 3968 | (NULL != resp->crc) ); |
3969 | mhd_assert ( (0 == connection->response_write_position) || \ | 3969 | mhd_assert ( (0 == connection->response_write_position) || \ |
3970 | (resp->total_size == | 3970 | (resp->total_size == |
3971 | connection->response_write_position) || \ | ||
3972 | (MHD_SIZE_UNKNOWN == | ||
3973 | connection->response_write_position) ); | 3971 | connection->response_write_position) ); |
3974 | mhd_assert ((MHD_CONN_MUST_UPGRADE != connection->keepalive) || \ | 3972 | mhd_assert ((MHD_CONN_MUST_UPGRADE != connection->keepalive) || \ |
3975 | (! connection->rp_props.send_reply_body)); | 3973 | (! connection->rp_props.send_reply_body)); |