diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index 727300a6..926de72e 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -370,7 +370,7 @@ try_ready_normal_body (struct MHD_Connection *connection) | |||
370 | response = connection->response; | 370 | response = connection->response; |
371 | if (NULL == response->crc) | 371 | if (NULL == response->crc) |
372 | return MHD_YES; | 372 | return MHD_YES; |
373 | if (0 == response->data_size) | 373 | if (0 == response->total_size) |
374 | return MHD_YES; /* 0-byte response is always ready */ | 374 | return MHD_YES; /* 0-byte response is always ready */ |
375 | if ( (response->data_start <= | 375 | if ( (response->data_start <= |
376 | connection->response_write_position) && | 376 | connection->response_write_position) && |
@@ -479,7 +479,7 @@ try_ready_chunked_body (struct MHD_Connection *connection) | |||
479 | else | 479 | else |
480 | { | 480 | { |
481 | /* buffer not in range, try to fill it */ | 481 | /* buffer not in range, try to fill it */ |
482 | if (0 == response->data_size) | 482 | if (0 == response->total_size) |
483 | ret = 0; /* response must be empty, don't bother calling crc */ | 483 | ret = 0; /* response must be empty, don't bother calling crc */ |
484 | else | 484 | else |
485 | ret = response->crc (response->crc_cls, | 485 | ret = response->crc (response->crc_cls, |
@@ -496,7 +496,7 @@ try_ready_chunked_body (struct MHD_Connection *connection) | |||
496 | return MHD_NO; | 496 | return MHD_NO; |
497 | } | 497 | } |
498 | if ( (MHD_CONTENT_READER_END_OF_STREAM == ret) || | 498 | if ( (MHD_CONTENT_READER_END_OF_STREAM == ret) || |
499 | (0 == response->data_size) ) | 499 | (0 == response->total_size) ) |
500 | { | 500 | { |
501 | /* end of message, signal other side! */ | 501 | /* end of message, signal other side! */ |
502 | strcpy (connection->write_buffer, "0\r\n"); | 502 | strcpy (connection->write_buffer, "0\r\n"); |