libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 449bb33ca0d05ea2d73ca3c2c62fd6539a11428f
parent 94c463e9995378078cafb9924e1d641bd0173668
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 23 Feb 2011 13:23:20 +0000

removing useless code

Diffstat:
MChangeLog | 3+++
Msrc/daemon/connection.c | 5-----
Msrc/daemon/internal.h | 5-----
Msrc/include/microhttpd.h | 2+-
4 files changed, 4 insertions(+), 11 deletions(-)

diff --git 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 @@ -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 @@ -642,11 +642,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 * with chunks. After we are done with the body and we are diff --git 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".