diff options
author | Christian Grothoff <christian@grothoff.org> | 2007-06-14 00:09:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2007-06-14 00:09:32 +0000 |
commit | b7054096a4e58009d7eddbda083762883213f937 (patch) | |
tree | c6ee744359d5c13e9c0de3238c0acc1a823f782d /src/daemon/minimal_example.c | |
parent | 6e12c7fae2b6350a65f1b2eeedafd6f05510726b (diff) | |
download | libmicrohttpd-b7054096a4e58009d7eddbda083762883213f937.tar.gz libmicrohttpd-b7054096a4e58009d7eddbda083762883213f937.zip |
extended API, setting content length automatically if needed
Diffstat (limited to 'src/daemon/minimal_example.c')
-rw-r--r-- | src/daemon/minimal_example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/minimal_example.c b/src/daemon/minimal_example.c index 189c557e..009721d6 100644 --- a/src/daemon/minimal_example.c +++ b/src/daemon/minimal_example.c | |||
@@ -49,7 +49,7 @@ static int ahc_echo(void * cls, | |||
49 | struct MHD_Response * response; | 49 | struct MHD_Response * response; |
50 | int ret; | 50 | int ret; |
51 | 51 | ||
52 | if (0 != strcmp(me, "GET")) | 52 | if (0 != strcmp(method, "GET")) |
53 | return MHD_NO; /* unexpected method */ | 53 | return MHD_NO; /* unexpected method */ |
54 | response = MHD_create_response_from_data(strlen(me), | 54 | response = MHD_create_response_from_data(strlen(me), |
55 | (void*) me, | 55 | (void*) me, |