mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
Do not send "100 Continue" if part of the request body is already received
This commit is contained in:
@@ -4935,8 +4935,12 @@ MHD_connection_handle_idle (struct MHD_Connection *connection)
|
||||
continue;
|
||||
if (connection->suspended)
|
||||
continue;
|
||||
|
||||
if ( (NULL == connection->rp.response) &&
|
||||
(need_100_continue (connection)) )
|
||||
(need_100_continue (connection)) &&
|
||||
/* If the client is already sending the payload (body)
|
||||
there is no need to send "100 Continue" */
|
||||
(0 == connection->read_buffer_offset) )
|
||||
{
|
||||
connection->state = MHD_CONNECTION_CONTINUE_SENDING;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user