@@ -60,11 +60,12 @@ const char *want[] = {
60
60
"pics" , "file2.gif" , "image/gif" , "binary" , "filedata2" ,
61
61
#define FORM_NESTED_END (FORM_NESTED_START + 15 )
62
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
64
#define URL_EMPTY_VALUE_START (FORM_NESTED_END + 5 )
65
65
"key1" , NULL , NULL , NULL , "value1" ,
66
- "key2" , NULL , NULL , NULL , NULL ,
67
- #define URL_EMPTY_VALUE_END (URL_EMPTY_VALUE_START + 10 )
66
+ "key2" , NULL , NULL , NULL , "" ,
67
+ "key3" , NULL , NULL , NULL , "" ,
68
+ #define URL_EMPTY_VALUE_END (URL_EMPTY_VALUE_START + 15 )
68
69
NULL , NULL , NULL , NULL , NULL
69
70
};
70
71
@@ -95,8 +96,8 @@ value_checker (void *cls,
95
96
"VC: `%s' `%s' `%s' `%s' `%.*s'\n" ,
96
97
key , filename , content_type , transfer_encoding , size , data );
97
98
#endif
98
- if (size == 0 )
99
- return MHD_YES ;
99
+ if ( ( 0 != off ) && ( 0 == size ) )
100
+ return MHD_YES ;
100
101
if ((idx < 0 ) ||
101
102
(want [idx ] == NULL ) ||
102
103
(0 != strcmp (key , want [idx ])) ||
0 commit comments