diff options
Diffstat (limited to 'src/daemon/postprocessor.c')
-rw-r--r-- | src/daemon/postprocessor.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/daemon/postprocessor.c b/src/daemon/postprocessor.c index 46c68518..3d25e4bd 100644 --- a/src/daemon/postprocessor.c +++ b/src/daemon/postprocessor.c | |||
@@ -263,7 +263,8 @@ MHD_create_post_processor (struct MHD_Connection *connection, | |||
263 | if (encoding == NULL) | 263 | if (encoding == NULL) |
264 | return NULL; | 264 | return NULL; |
265 | boundary = NULL; | 265 | boundary = NULL; |
266 | if (0 != strcasecmp (MHD_HTTP_POST_ENCODING_FORM_URLENCODED, encoding)) | 266 | if (0 != strncasecmp (MHD_HTTP_POST_ENCODING_FORM_URLENCODED, encoding, |
267 | strlen (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA))) | ||
267 | { | 268 | { |
268 | if (0 != | 269 | if (0 != |
269 | strncasecmp (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA, encoding, | 270 | strncasecmp (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA, encoding, |
@@ -1005,7 +1006,8 @@ MHD_post_process (struct MHD_PostProcessor *pp, | |||
1005 | return MHD_YES; | 1006 | return MHD_YES; |
1006 | if (pp == NULL) | 1007 | if (pp == NULL) |
1007 | return MHD_NO; | 1008 | return MHD_NO; |
1008 | if (0 == strcasecmp (MHD_HTTP_POST_ENCODING_FORM_URLENCODED, pp->encoding)) | 1009 | if (0 == strncasecmp (MHD_HTTP_POST_ENCODING_FORM_URLENCODED, pp->encoding, |
1010 | strlen(MHD_HTTP_POST_ENCODING_FORM_URLENCODED))) | ||
1009 | return post_process_urlencoded (pp, post_data, post_data_len); | 1011 | return post_process_urlencoded (pp, post_data, post_data_len); |
1010 | if (0 == | 1012 | if (0 == |
1011 | strncasecmp (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA, pp->encoding, | 1013 | strncasecmp (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA, pp->encoding, |