diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 25279931..0426620b 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -3235,19 +3235,11 @@ process_request_body (struct MHD_Connection *connection) | |||
3235 | { | 3235 | { |
3236 | /* no chunked encoding, give all to the client */ | 3236 | /* no chunked encoding, give all to the client */ |
3237 | mhd_assert (MHD_SIZE_UNKNOWN != connection->remaining_upload_size); | 3237 | mhd_assert (MHD_SIZE_UNKNOWN != connection->remaining_upload_size); |
3238 | if ( (0 != connection->remaining_upload_size) && | 3238 | mhd_assert (0 != connection->remaining_upload_size); |
3239 | (connection->remaining_upload_size < available) ) | 3239 | if (connection->remaining_upload_size < available) |
3240 | { | ||
3241 | to_be_processed = (size_t) connection->remaining_upload_size; | 3240 | to_be_processed = (size_t) connection->remaining_upload_size; |
3242 | } | ||
3243 | else | 3241 | else |
3244 | { | ||
3245 | /** | ||
3246 | * 1. no chunked encoding, give all to the client | ||
3247 | * 2. client may send large chunked data, but only a smaller part is available at one time. | ||
3248 | */ | ||
3249 | to_be_processed = available; | 3242 | to_be_processed = available; |
3250 | } | ||
3251 | } | 3243 | } |
3252 | left_unprocessed = to_be_processed; | 3244 | left_unprocessed = to_be_processed; |
3253 | connection->client_aware = true; | 3245 | connection->client_aware = true; |