diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index d87be33f..79a8e29b 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -390,7 +390,10 @@ try_ready_normal_body (struct MHD_Connection *connection) | |||
390 | response->data_start = connection->response_write_position; | 390 | response->data_start = connection->response_write_position; |
391 | response->data_size = ret; | 391 | response->data_size = ret; |
392 | if (ret == 0) | 392 | if (ret == 0) |
393 | return MHD_NO; | 393 | { |
394 | connection->state = MHD_CONNECTION_NORMAL_BODY_UNREADY; | ||
395 | return MHD_NO; | ||
396 | } | ||
394 | return MHD_YES; | 397 | return MHD_YES; |
395 | } | 398 | } |
396 | 399 | ||
@@ -1847,7 +1850,6 @@ MHD_connection_handle_write (struct MHD_Connection *connection) | |||
1847 | { | 1850 | { |
1848 | if (response->crc != NULL) | 1851 | if (response->crc != NULL) |
1849 | pthread_mutex_unlock (&response->mutex); | 1852 | pthread_mutex_unlock (&response->mutex); |
1850 | connection->state = MHD_CONNECTION_NORMAL_BODY_UNREADY; | ||
1851 | break; | 1853 | break; |
1852 | } | 1854 | } |
1853 | ret = connection->send_cls (connection, | 1855 | ret = connection->send_cls (connection, |