libmicrohttpd

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

commit e94371d4e3015aa883b62af8b22a5fa1b101628a
parent e4f1f8fc4a0485b37f581b422746a6a620367329
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 20 Apr 2008 23:01:25 +0000

another example

Diffstat:
Msrc/examples/fileserver_example.c | 2+-
Msrc/examples/fileserver_example_external_select.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/examples/fileserver_example.c b/src/examples/fileserver_example.c @@ -60,7 +60,7 @@ ahc_echo (void *cls, FILE *file; struct stat buf; - if (0 != strcmp (method, "GET")) + if (0 != strcmp (method, MHD_HTTP_METHOD_GET)) return MHD_NO; /* unexpected method */ if (&aptr != *ptr) { diff --git a/src/examples/fileserver_example_external_select.c b/src/examples/fileserver_example_external_select.c @@ -60,7 +60,7 @@ ahc_echo (void *cls, FILE *file; struct stat buf; - if (0 != strcmp (method, "GET")) + if (0 != strcmp (method, MHD_HTTP_METHOD_GET)) return MHD_NO; /* unexpected method */ if (&aptr != *ptr) {