[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 113/156: examples/largepost.c: fixed caseless method mat
From: |
gnunet |
Subject: |
[libmicrohttpd] 113/156: examples/largepost.c: fixed caseless method match |
Date: |
Sun, 28 May 2023 17:52:46 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit d1882a8723cbe64f58fe0a6d16fa169352e4e79c
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 dc685745..165c47ed 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
@@ -239,7 +233,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,
@@ -267,7 +261,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];
@@ -281,7 +275,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 = *con_cls;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 102/156: configure: removed 'gettext' from the final report, (continued)
- [libmicrohttpd] 102/156: configure: removed 'gettext' from the final report, gnunet, 2023/05/28
- [libmicrohttpd] 109/156: test_client_put_stop: avoid stress-testing the OS, gnunet, 2023/05/28
- [libmicrohttpd] 115/156: test_post: fixed caseless key name match, gnunet, 2023/05/28
- [libmicrohttpd] 120/156: Simplified usage of the function name magic macros, gnunet, 2023/05/28
- [libmicrohttpd] 131/156: ChangeLog: updated, gnunet, 2023/05/28
- [libmicrohttpd] 138/156: Fixed compiler warning on x32, gnunet, 2023/05/28
- [libmicrohttpd] 78/156: Added tests with single and double folded header, gnunet, 2023/05/28
- [libmicrohttpd] 110/156: digest auth: fixed parallel access to the hash table, gnunet, 2023/05/28
- [libmicrohttpd] 114/156: examples/largepost.c: fixed code style, gnunet, 2023/05/28
- [libmicrohttpd] 125/156: .gitignore: force include all *.{c,h} files, gnunet, 2023/05/28
- [libmicrohttpd] 113/156: examples/largepost.c: fixed caseless method match,
gnunet <=
- [libmicrohttpd] 129/156: Detect sysctl() symbols in configure, gnunet, 2023/05/28
- [libmicrohttpd] 98/156: .gitignore: added universal patter to ignore test binaries, gnunet, 2023/05/28
- [libmicrohttpd] 140/156: Added support for custom command for tarball compression, gnunet, 2023/05/28
- [libmicrohttpd] 143/156: Fixed compiler warning when built without poll() support, gnunet, 2023/05/28
- [libmicrohttpd] 141/156: contrib/make-dist.sh: added use of zopfli if available, gnunet, 2023/05/28
- [libmicrohttpd] 142/156: daemon.c: redesigned code for clarity and formatting, gnunet, 2023/05/28
- [libmicrohttpd] 144/156: Avoided potential compiler warnings, gnunet, 2023/05/28
- [libmicrohttpd] 149/156: Removed Public Domain base64 decoding files, gnunet, 2023/05/28
- [libmicrohttpd] 151/156: ChangeLog: updated, gnunet, 2023/05/28
- [libmicrohttpd] 152/156: W32 VS project: reverted to standard arches names, gnunet, 2023/05/28