commit 90d6f460958d62b6086e639d07e75597c8e2573c
parent d1d418824d1c42804b5cb0eb6d6a285a97803ede
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 8 Nov 2009 12:03:30 +0000
From:
Jon Nalley <lists@bluebot.org>
To:
libmicrohttpd development and user mailinglist <libmicrohttpd@gnu.org>
Date:
Today 11:34:10 am
Hi,
I believe I may have found a small bug in postprocessor.c.
--- begin excerpt @ line 266 postprocessor.c ---
if (0 != strncasecmp (MHD_HTTP_POST_ENCODING_FORM_URLENCODED, encoding,
strlen (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA)))
--- end excerpt ---
Shouldn't it be strlen(MHD_HTTP_POST_ENCODING_FORM_URLENCODED) ???
Regards,
Jon Nalley
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/daemon/postprocessor.c b/src/daemon/postprocessor.c
@@ -264,7 +264,7 @@ MHD_create_post_processor (struct MHD_Connection *connection,
return NULL;
boundary = NULL;
if (0 != strncasecmp (MHD_HTTP_POST_ENCODING_FORM_URLENCODED, encoding,
- strlen (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA)))
+ strlen (MHD_HTTP_POST_ENCODING_FORM_URLENCODED)))
{
if (0 !=
strncasecmp (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA, encoding,