aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-01-23 23:58:44 +0000
committerChristian Grothoff <christian@grothoff.org>2009-01-23 23:58:44 +0000
commitd4d7006bbbc04b0d99f59de48ae2cb7cf72bc51b (patch)
treecc490c35e45ed292291722ecd6e2ebdfb0155a5b
parent348db743d16fb95fc5ba838ba93644091beb46ec (diff)
downloadlibmicrohttpd-d4d7006bbbc04b0d99f59de48ae2cb7cf72bc51b.tar.gz
libmicrohttpd-d4d7006bbbc04b0d99f59de48ae2cb7cf72bc51b.zip
fixing Mantis 1443
-rw-r--r--ChangeLog4
-rw-r--r--src/daemon/postprocessor.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b6e5555c..11358c0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
1Fri 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
1Fri Dec 26 23:08:04 MST 2008 5Fri 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,