[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 15/36: examples/largepost.c: fixed caseless method match
From: |
gnunet |
Subject: |
[libmicrohttpd] 15/36: examples/largepost.c: fixed caseless method match |
Date: |
Thu, 01 Jun 2023 12:30:20 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 3806c7ba24e772bba007c273f6e74f00ccb7d83f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu May 18 20:42:19 2023 +0300
examples/largepost.c: fixed caseless method match
---
doc/examples/largepost.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c
index 8669bc28..45c4ad03 100644
--- a/doc/examples/largepost.c
+++ b/doc/examples/largepost.c
@@ -13,12 +13,6 @@
#include <string.h>
#include <microhttpd.h>
-#ifdef _MSC_VER
-#ifndef strcasecmp
-#define strcasecmp(a,b) _stricmp ((a),(b))
-#endif /* !strcasecmp */
-#endif /* _MSC_VER */
-
#if defined(_MSC_VER) && _MSC_VER + 0 <= 1800
/* Substitution is OK while return value is not used */
#define snprintf _snprintf
@@ -236,7 +230,7 @@ answer_to_connection (void *cls,
con_info->answercode = 0; /* none yet */
con_info->fp = NULL;
- if (0 == strcasecmp (method, MHD_HTTP_METHOD_POST))
+ if (0 == strcmp (method, MHD_HTTP_METHOD_POST))
{
con_info->postprocessor =
MHD_create_post_processor (connection,
@@ -264,7 +258,7 @@ answer_to_connection (void *cls,
return MHD_YES;
}
- if (0 == strcasecmp (method, MHD_HTTP_METHOD_GET))
+ if (0 == strcmp (method, MHD_HTTP_METHOD_GET))
{
/* We just return the standard form for uploads on all GET requests */
char buffer[1024];
@@ -278,7 +272,7 @@ answer_to_connection (void *cls,
MHD_HTTP_OK);
}
- if (0 == strcasecmp (method, MHD_HTTP_METHOD_POST))
+ if (0 == strcmp (method, MHD_HTTP_METHOD_POST))
{
struct connection_info_struct *con_info = *req_cls;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 13/36: test_timeout: moved to heavy tests, (continued)
- [libmicrohttpd] 13/36: test_timeout: moved to heavy tests, gnunet, 2023/06/01
- [libmicrohttpd] 16/36: test_post: fixed caseless key name match, gnunet, 2023/06/01
- [libmicrohttpd] 19/36: Simplified usage of the function name magic macros, gnunet, 2023/06/01
- [libmicrohttpd] 23/36: .gitignore: force include all *.{c,h} files, gnunet, 2023/06/01
- [libmicrohttpd] 26/36: test_client_put_stop: fixed typo in diag message, gnunet, 2023/06/01
- [libmicrohttpd] 25/36: Detect sysctl() symbols in configure, gnunet, 2023/06/01
- [libmicrohttpd] 28/36: contrib/make-dist.sh: added use of zopfli if available, gnunet, 2023/06/01
- [libmicrohttpd] 29/36: daemon.c: redesigned code for clarity and formatting, gnunet, 2023/06/01
- [libmicrohttpd] 35/36: autoinit_funcs.h: fixed warning on MSVC, gnunet, 2023/06/01
- [libmicrohttpd] 27/36: Added support for custom command for tarball compression, gnunet, 2023/06/01
- [libmicrohttpd] 15/36: examples/largepost.c: fixed caseless method match,
gnunet <=
- [libmicrohttpd] 20/36: tests: unified use of function name macros, gnunet, 2023/06/01
- [libmicrohttpd] 21/36: Added internal preprocessor macro for magic macro presence, gnunet, 2023/06/01
- [libmicrohttpd] 30/36: Fixed compiler warning when built without poll() support, gnunet, 2023/06/01
- [libmicrohttpd] 31/36: Avoided potential compiler warnings, gnunet, 2023/06/01
- [libmicrohttpd] 32/36: Added macro for base64 decoded size, gnunet, 2023/06/01
- [libmicrohttpd] 36/36: W32 VS Project: fixed warning with external build systems, gnunet, 2023/06/01
- [libmicrohttpd] 34/36: W32 VS Project: minor internal fixes, fixed files for "dist", gnunet, 2023/06/01
- [libmicrohttpd] 33/36: W32 VS project: reverted to standard arches names, gnunet, 2023/06/01