diff options
Diffstat (limited to 'src/daemon/daemontest_postform.c')
-rw-r--r-- | src/daemon/daemontest_postform.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/daemon/daemontest_postform.c b/src/daemon/daemontest_postform.c index 75df1eb0..00734df6 100644 --- a/src/daemon/daemontest_postform.c +++ b/src/daemon/daemontest_postform.c | |||
@@ -72,6 +72,13 @@ post_iterator (void *cls, | |||
72 | { | 72 | { |
73 | int *eok = cls; | 73 | int *eok = cls; |
74 | 74 | ||
75 | #if 0 | ||
76 | fprintf(stderr, | ||
77 | "PI sees %s-%.*s\n", | ||
78 | key, | ||
79 | size, | ||
80 | value); | ||
81 | #endif | ||
75 | if ((0 == strcmp (key, "name")) && | 82 | if ((0 == strcmp (key, "name")) && |
76 | (size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size))) | 83 | (size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size))) |
77 | (*eok) |= 1; | 84 | (*eok) |= 1; |
@@ -95,7 +102,7 @@ ahc_echo (void *cls, | |||
95 | struct MHD_PostProcessor *pp; | 102 | struct MHD_PostProcessor *pp; |
96 | int ret; | 103 | int ret; |
97 | 104 | ||
98 | if (0 != strcmp ("POST", method)) | 105 | if (0 != strcmp ("POST", method)) |
99 | { | 106 | { |
100 | printf ("METHOD: %s\n", method); | 107 | printf ("METHOD: %s\n", method); |
101 | return MHD_NO; /* unexpected method */ | 108 | return MHD_NO; /* unexpected method */ |