mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-26 04:09:30 +03:00
process_request_body(): removed one more unneeded check
This commit is contained in:
@@ -3235,19 +3235,11 @@ process_request_body (struct MHD_Connection *connection)
|
||||
{
|
||||
/* no chunked encoding, give all to the client */
|
||||
mhd_assert (MHD_SIZE_UNKNOWN != connection->remaining_upload_size);
|
||||
if ( (0 != connection->remaining_upload_size) &&
|
||||
(connection->remaining_upload_size < available) )
|
||||
{
|
||||
mhd_assert (0 != connection->remaining_upload_size);
|
||||
if (connection->remaining_upload_size < available)
|
||||
to_be_processed = (size_t) connection->remaining_upload_size;
|
||||
}
|
||||
else
|
||||
{
|
||||
/**
|
||||
* 1. no chunked encoding, give all to the client
|
||||
* 2. client may send large chunked data, but only a smaller part is available at one time.
|
||||
*/
|
||||
to_be_processed = available;
|
||||
}
|
||||
}
|
||||
left_unprocessed = to_be_processed;
|
||||
connection->client_aware = true;
|
||||
|
||||
Reference in New Issue
Block a user