diff options
Diffstat (limited to 'src/daemon/postprocessor_test.c')
-rw-r--r-- | src/daemon/postprocessor_test.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/daemon/postprocessor_test.c b/src/daemon/postprocessor_test.c index 6042a8f4..f470024a 100644 --- a/src/daemon/postprocessor_test.c +++ b/src/daemon/postprocessor_test.c | |||
@@ -60,11 +60,12 @@ const char *want[] = { | |||
60 | "pics", "file2.gif", "image/gif", "binary", "filedata2", | 60 | "pics", "file2.gif", "image/gif", "binary", "filedata2", |
61 | #define FORM_NESTED_END (FORM_NESTED_START + 15) | 61 | #define FORM_NESTED_END (FORM_NESTED_START + 15) |
62 | NULL, NULL, NULL, NULL, NULL, | 62 | NULL, NULL, NULL, NULL, NULL, |
63 | #define URL_EMPTY_VALUE_DATA "key1=value1&key2=" | 63 | #define URL_EMPTY_VALUE_DATA "key1=value1&key2=&key3=" |
64 | #define URL_EMPTY_VALUE_START (FORM_NESTED_END + 5) | 64 | #define URL_EMPTY_VALUE_START (FORM_NESTED_END + 5) |
65 | "key1", NULL, NULL, NULL, "value1", | 65 | "key1", NULL, NULL, NULL, "value1", |
66 | "key2", NULL, NULL, NULL, NULL, | 66 | "key2", NULL, NULL, NULL, "", |
67 | #define URL_EMPTY_VALUE_END (URL_EMPTY_VALUE_START + 10) | 67 | "key3", NULL, NULL, NULL, "", |
68 | #define URL_EMPTY_VALUE_END (URL_EMPTY_VALUE_START + 15) | ||
68 | NULL, NULL, NULL, NULL, NULL | 69 | NULL, NULL, NULL, NULL, NULL |
69 | }; | 70 | }; |
70 | 71 | ||
@@ -95,8 +96,8 @@ value_checker (void *cls, | |||
95 | "VC: `%s' `%s' `%s' `%s' `%.*s'\n", | 96 | "VC: `%s' `%s' `%s' `%s' `%.*s'\n", |
96 | key, filename, content_type, transfer_encoding, size, data); | 97 | key, filename, content_type, transfer_encoding, size, data); |
97 | #endif | 98 | #endif |
98 | if (size == 0) | 99 | if ( (0 != off) && (0 == size) ) |
99 | return MHD_YES; | 100 | return MHD_YES; |
100 | if ((idx < 0) || | 101 | if ((idx < 0) || |
101 | (want[idx] == NULL) || | 102 | (want[idx] == NULL) || |
102 | (0 != strcmp (key, want[idx])) || | 103 | (0 != strcmp (key, want[idx])) || |