diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-01-31 06:21:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-01-31 06:21:49 +0000 |
commit | f3ce0400d1b2e56ec57eb70be828752916210751 (patch) | |
tree | 6a1a7448488324c9ebcfc4c82d2603e6e0349544 | |
parent | ccad20a05fcf4ae866551ea792ebdceb2ffd5664 (diff) | |
download | libmicrohttpd-f3ce0400d1b2e56ec57eb70be828752916210751.tar.gz libmicrohttpd-f3ce0400d1b2e56ec57eb70be828752916210751.zip |
finished support for nested multiparts
-rw-r--r-- | README | 8 | ||||
-rw-r--r-- | src/daemon/connection.c | 7 | ||||
-rw-r--r-- | src/include/microhttpd.h | 2 |
3 files changed, 7 insertions, 10 deletions
@@ -50,14 +50,6 @@ indicates that a testcase should be written before implementing the | |||
50 | feature. | 50 | feature. |
51 | 51 | ||
52 | 52 | ||
53 | For POST: | ||
54 | ========= | ||
55 | - add support to decode multipart/form-data with | ||
56 | nesting (used for files) -- #1221, TEST | ||
57 | - http://en.wikipedia.org/wiki/HTTP_pipelining: | ||
58 | "Only idempotent requests should be pipelined, such as GET and HEAD requests." | ||
59 | We should make sure that we force a close after POSTs, PUTs and DELETEs. | ||
60 | |||
61 | For SSL: | 53 | For SSL: |
62 | ======== | 54 | ======== |
63 | microhttpd.h: | 55 | microhttpd.h: |
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index fbcbffc2..c82278cb 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -1795,8 +1795,13 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
1795 | if (((MHD_YES == connection->read_closed) && | 1795 | if (((MHD_YES == connection->read_closed) && |
1796 | (0 == connection->read_buffer_offset)) || | 1796 | (0 == connection->read_buffer_offset)) || |
1797 | (connection->version == NULL) || | 1797 | (connection->version == NULL) || |
1798 | (0 != strcasecmp (MHD_HTTP_VERSION_1_1, connection->version))) | 1798 | (connection->method == NULL) || |
1799 | ( (0 != strcasecmp (MHD_HTTP_METHOD_HEAD, connection->method)) && | ||
1800 | (0 != strcasecmp (MHD_HTTP_METHOD_GET, connection->method)) ) || | ||
1801 | (0 != strcasecmp (MHD_HTTP_VERSION_1_1, connection->version))) | ||
1799 | { | 1802 | { |
1803 | /* http 1.0, version-less or non-HEAD/GET requests cannot be | ||
1804 | pipelined */ | ||
1800 | connection->state = MHD_CONNECTION_CLOSED; | 1805 | connection->state = MHD_CONNECTION_CLOSED; |
1801 | MHD_pool_destroy (connection->pool); | 1806 | MHD_pool_destroy (connection->pool); |
1802 | connection->pool = NULL; | 1807 | connection->pool = NULL; |
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 76e64e96..0d280c55 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -84,7 +84,7 @@ extern "C" | |||
84 | /** | 84 | /** |
85 | * Current version of the library. | 85 | * Current version of the library. |
86 | */ | 86 | */ |
87 | #define MHD_VERSION 0x00000201 | 87 | #define MHD_VERSION 0x00020100 |
88 | 88 | ||
89 | /** | 89 | /** |
90 | * MHD-internal return codes. | 90 | * MHD-internal return codes. |