diff options
author | Christian Grothoff <christian@grothoff.org> | 2007-06-16 07:25:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2007-06-16 07:25:57 +0000 |
commit | 791198d30deda7bcdc7075e2c39e51c1f466d7fc (patch) | |
tree | a41f364f5ae9c192ca9e19db20e4a939c1354fa2 | |
parent | 553f84de5cc0efb7b5af14308463cfabd9a2d966 (diff) | |
download | libmicrohttpd-791198d30deda7bcdc7075e2c39e51c1f466d7fc.tar.gz libmicrohttpd-791198d30deda7bcdc7075e2c39e51c1f466d7fc.zip |
fixing PUT, renaming testcase
-rw-r--r-- | src/daemon/Makefile.am | 8 | ||||
-rw-r--r-- | src/daemon/daemon.c | 3 | ||||
-rw-r--r-- | src/daemon/daemontest_get.c (renamed from src/daemon/daemontest1.c) | 0 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 7eda834b..93780b67 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am | |||
@@ -32,7 +32,7 @@ if HAVE_CURL | |||
32 | 32 | ||
33 | check_PROGRAMS = \ | 33 | check_PROGRAMS = \ |
34 | daemontest \ | 34 | daemontest \ |
35 | daemontest1 \ | 35 | daemontest_get \ |
36 | daemontest_post \ | 36 | daemontest_post \ |
37 | daemontest_put | 37 | daemontest_put |
38 | 38 | ||
@@ -43,9 +43,9 @@ daemontest_SOURCES = \ | |||
43 | daemontest_LDADD = \ | 43 | daemontest_LDADD = \ |
44 | $(top_builddir)/src/daemon/libmicrohttpd.la | 44 | $(top_builddir)/src/daemon/libmicrohttpd.la |
45 | 45 | ||
46 | daemontest1_SOURCES = \ | 46 | daemontest_get_SOURCES = \ |
47 | daemontest1.c | 47 | daemontest_get.c |
48 | daemontest1_LDADD = \ | 48 | daemontest_get_LDADD = \ |
49 | $(top_builddir)/src/daemon/libmicrohttpd.la \ | 49 | $(top_builddir)/src/daemon/libmicrohttpd.la \ |
50 | @LIBCURL@ | 50 | @LIBCURL@ |
51 | 51 | ||
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index f393355b..c586bf5a 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -190,6 +190,9 @@ MHD_handle_connection(void * data) { | |||
190 | (FD_ISSET(con->socket_fd, &ws)) && | 190 | (FD_ISSET(con->socket_fd, &ws)) && |
191 | (MHD_YES != MHD_session_handle_write(con)) ) ) | 191 | (MHD_YES != MHD_session_handle_write(con)) ) ) |
192 | break; | 192 | break; |
193 | if ( (con->headersReceived == 1) && | ||
194 | (con->response == NULL) ) | ||
195 | MHD_call_session_handler(con); | ||
193 | } | 196 | } |
194 | if (con->socket_fd != -1) { | 197 | if (con->socket_fd != -1) { |
195 | CLOSE(con->socket_fd); | 198 | CLOSE(con->socket_fd); |
diff --git a/src/daemon/daemontest1.c b/src/daemon/daemontest_get.c index d3b6c5bc..d3b6c5bc 100644 --- a/src/daemon/daemontest1.c +++ b/src/daemon/daemontest_get.c | |||