libmicrohttpd

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

commit 791198d30deda7bcdc7075e2c39e51c1f466d7fc
parent 553f84de5cc0efb7b5af14308463cfabd9a2d966
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 16 Jun 2007 07:25:57 +0000

fixing PUT, renaming testcase

Diffstat:
Msrc/daemon/Makefile.am | 8++++----
Msrc/daemon/daemon.c | 3+++
Rsrc/daemon/daemontest1.c -> src/daemon/daemontest_get.c | 0
3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am @@ -32,7 +32,7 @@ if HAVE_CURL check_PROGRAMS = \ daemontest \ - daemontest1 \ + daemontest_get \ daemontest_post \ daemontest_put @@ -43,9 +43,9 @@ daemontest_SOURCES = \ daemontest_LDADD = \ $(top_builddir)/src/daemon/libmicrohttpd.la -daemontest1_SOURCES = \ - daemontest1.c -daemontest1_LDADD = \ +daemontest_get_SOURCES = \ + daemontest_get.c +daemontest_get_LDADD = \ $(top_builddir)/src/daemon/libmicrohttpd.la \ @LIBCURL@ diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c @@ -190,6 +190,9 @@ MHD_handle_connection(void * data) { (FD_ISSET(con->socket_fd, &ws)) && (MHD_YES != MHD_session_handle_write(con)) ) ) break; + if ( (con->headersReceived == 1) && + (con->response == NULL) ) + MHD_call_session_handler(con); } if (con->socket_fd != -1) { CLOSE(con->socket_fd); diff --git a/src/daemon/daemontest1.c b/src/daemon/daemontest_get.c