diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-01-23 23:58:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-01-23 23:58:44 +0000 |
commit | d4d7006bbbc04b0d99f59de48ae2cb7cf72bc51b (patch) | |
tree | cc490c35e45ed292291722ecd6e2ebdfb0155a5b | |
parent | 348db743d16fb95fc5ba838ba93644091beb46ec (diff) | |
download | libmicrohttpd-d4d7006bbbc04b0d99f59de48ae2cb7cf72bc51b.tar.gz libmicrohttpd-d4d7006bbbc04b0d99f59de48ae2cb7cf72bc51b.zip |
fixing Mantis 1443
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/daemon/postprocessor.c | 6 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,7 @@ | |||
1 | Fri Jan 23 16:57:21 MST 2009 | ||
2 | Support charset specification (ignore) after content-type | ||
3 | when post-processing HTTP POST requests (Mantis #1443). -CG/SN | ||
4 | |||
1 | Fri Dec 26 23:08:04 MST 2008 | 5 | Fri Dec 26 23:08:04 MST 2008 |
2 | Fixed broken check for identical connection address. -CG | 6 | Fixed broken check for identical connection address. -CG |
3 | Making cookie parser more RFC2109 compliant (handle | 7 | Making cookie parser more RFC2109 compliant (handle |
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, |