diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-05-06 10:49:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-05-06 10:49:23 +0000 |
commit | f35fdf4b7c6f09557a6ac72e3550bcdbf6936f47 (patch) | |
tree | 5151844f6acc42b00fe1f70180edc63082cabd18 /src/microhttpd/connection.c | |
parent | af157f337a92dc3ab59286c45ca7c0cb52d165c1 (diff) | |
download | libmicrohttpd-f35fdf4b7c6f09557a6ac72e3550bcdbf6936f47.tar.gz libmicrohttpd-f35fdf4b7c6f09557a6ac72e3550bcdbf6936f47.zip |
-fixing #2859
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 728da12d..5a27df88 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -2034,6 +2034,12 @@ MHD_connection_handle_write (struct MHD_Connection *connection) | |||
2034 | pthread_mutex_unlock (&response->mutex); | 2034 | pthread_mutex_unlock (&response->mutex); |
2035 | break; | 2035 | break; |
2036 | } | 2036 | } |
2037 | if (response->data_size == connection->response_write_position - response->data_start) | ||
2038 | { | ||
2039 | /* nothing to transmit, move on */ | ||
2040 | connection->state = MHD_CONNECTION_BODY_SENT; | ||
2041 | return MHD_YES; | ||
2042 | } | ||
2037 | ret = connection->send_cls (connection, | 2043 | ret = connection->send_cls (connection, |
2038 | &response->data | 2044 | &response->data |
2039 | [connection->response_write_position | 2045 | [connection->response_write_position |