mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-26 04:09:30 +03:00
Response from callback: do allow negative return amounts, except predefined values
This commit is contained in:
@@ -1071,8 +1071,7 @@ try_ready_normal_body (struct MHD_Connection *connection)
|
||||
(size_t) MHD_MIN ((uint64_t) response->data_buffer_size,
|
||||
response->total_size
|
||||
- connection->response_write_position));
|
||||
if ( (MHD_CONTENT_READER_END_OF_STREAM == ret) ||
|
||||
(MHD_CONTENT_READER_END_WITH_ERROR == ret) )
|
||||
if (0 > ret)
|
||||
{
|
||||
/* either error or http 1.0 transfer, close socket! */
|
||||
/* TODO: do not update total size, check whether response
|
||||
|
||||
Reference in New Issue
Block a user