diff --git a/ChangeLog b/ChangeLog index e59e41c9..c0424fcb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +Wed Feb 23 14:21:44 CET 2011 + Removing useless code pointed out by Eivind Sarto. -CG + Fri Feb 18 11:03:59 CET 2011 Handle large (>2 GB) file transfers with sendfile on 32-bit systems better; handle odd sendfile failures by libc/kernel diff --git a/src/daemon/connection.c b/src/daemon/connection.c index 8cc6e946..49fa6ffe 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c @@ -241,11 +241,6 @@ MHD_queue_response (struct MHD_Connection *connection, have already sent the full message body */ connection->response_write_position = response->total_size; } - if ((response->total_size == MHD_SIZE_UNKNOWN) && - (0 == strcasecmp (connection->version, MHD_HTTP_VERSION_1_1))) - connection->have_chunked_response = MHD_YES; - else - connection->have_chunked_response = MHD_NO; if (connection->state == MHD_CONNECTION_HEADERS_PROCESSED) { /* response was queued "early", diff --git a/src/daemon/internal.h b/src/daemon/internal.h index 4fb79583..9a3eb8cb 100644 --- a/src/daemon/internal.h +++ b/src/daemon/internal.h @@ -641,11 +641,6 @@ struct MHD_Connection */ int response_unready; - /** - * Are we sending with chunked encoding? - */ - int have_chunked_response; - /** * Are we receiving with chunked encoding? This will be set to * MHD_YES after we parse the headers and are processing the body diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index e1bc1239..881ff312 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h @@ -106,7 +106,7 @@ extern "C" /** * Current version of the library. */ -#define MHD_VERSION 0x00090701 +#define MHD_VERSION 0x00090702 /** * MHD-internal return code for "YES".