aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-02-23 13:23:20 +0000
committerChristian Grothoff <christian@grothoff.org>2011-02-23 13:23:20 +0000
commit449bb33ca0d05ea2d73ca3c2c62fd6539a11428f (patch)
tree51688788eb6a8206c205c3764d8ea0e5d4297833
parent94c463e9995378078cafb9924e1d641bd0173668 (diff)
downloadlibmicrohttpd-449bb33ca0d05ea2d73ca3c2c62fd6539a11428f.tar.gz
libmicrohttpd-449bb33ca0d05ea2d73ca3c2c62fd6539a11428f.zip
removing useless code
-rw-r--r--ChangeLog3
-rw-r--r--src/daemon/connection.c5
-rw-r--r--src/daemon/internal.h5
-rw-r--r--src/include/microhttpd.h2
4 files changed, 4 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index e59e41c9..c0424fcb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
1Wed Feb 23 14:21:44 CET 2011
2 Removing useless code pointed out by Eivind Sarto. -CG
3
1Fri Feb 18 11:03:59 CET 2011 4Fri Feb 18 11:03:59 CET 2011
2 Handle large (>2 GB) file transfers with sendfile on 32-bit 5 Handle large (>2 GB) file transfers with sendfile on 32-bit
3 systems better; handle odd sendfile failures by libc/kernel 6 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,
241 have already sent the full message body */ 241 have already sent the full message body */
242 connection->response_write_position = response->total_size; 242 connection->response_write_position = response->total_size;
243 } 243 }
244 if ((response->total_size == MHD_SIZE_UNKNOWN) &&
245 (0 == strcasecmp (connection->version, MHD_HTTP_VERSION_1_1)))
246 connection->have_chunked_response = MHD_YES;
247 else
248 connection->have_chunked_response = MHD_NO;
249 if (connection->state == MHD_CONNECTION_HEADERS_PROCESSED) 244 if (connection->state == MHD_CONNECTION_HEADERS_PROCESSED)
250 { 245 {
251 /* response was queued "early", 246 /* 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
@@ -642,11 +642,6 @@ struct MHD_Connection
642 int response_unready; 642 int response_unready;
643 643
644 /** 644 /**
645 * Are we sending with chunked encoding?
646 */
647 int have_chunked_response;
648
649 /**
650 * Are we receiving with chunked encoding? This will be set to 645 * Are we receiving with chunked encoding? This will be set to
651 * MHD_YES after we parse the headers and are processing the body 646 * MHD_YES after we parse the headers and are processing the body
652 * with chunks. After we are done with the body and we are 647 * with chunks. After we are done with the body and we are
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"
106/** 106/**
107 * Current version of the library. 107 * Current version of the library.
108 */ 108 */
109#define MHD_VERSION 0x00090701 109#define MHD_VERSION 0x00090702
110 110
111/** 111/**
112 * MHD-internal return code for "YES". 112 * MHD-internal return code for "YES".