[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 16/36: test_post: fixed caseless key name match
From: |
gnunet |
Subject: |
[libmicrohttpd] 16/36: test_post: fixed caseless key name match |
Date: |
Thu, 01 Jun 2023 12:30:21 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 3002ca583e2770146bdd5d75602b6a36c8b2a777
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu May 18 20:44:27 2023 +0300
test_post: fixed caseless key name match
---
src/testcurl/test_post.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
index 830663b5..658b7dd2 100644
--- a/src/testcurl/test_post.c
+++ b/src/testcurl/test_post.c
@@ -112,10 +112,10 @@ post_iterator (void *cls,
(void) kind; (void) filename; (void) content_type; /* Unused. Silent
compiler warning. */
(void) transfer_encoding; (void) off; /* Unused. Silent compiler
warning. */
- if ((0 == strcasecmp (key, "name")) &&
+ if ((0 == strcmp (key, "name")) &&
(size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size)))
(*eok) |= 1;
- if ((0 == strcasecmp (key, "project")) &&
+ if ((0 == strcmp (key, "project")) &&
(size == strlen ("curl")) && (0 == strncmp (value, "curl", size)))
(*eok) |= 2;
return MHD_YES;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 12/36: test_client_put_stop: avoid stress-testing the OS, (continued)
- [libmicrohttpd] 12/36: test_client_put_stop: avoid stress-testing the OS, gnunet, 2023/06/01
- [libmicrohttpd] 24/36: websocket_threaded_example: fixed wrong commented-out code, gnunet, 2023/06/01
- [libmicrohttpd] 22/36: test_client_put_stop: muted compiler warnings, gnunet, 2023/06/01
- [libmicrohttpd] 14/36: Added specific headers inclusion and detection, gnunet, 2023/06/01
- [libmicrohttpd] 07/36: configure: renamed macro, gnunet, 2023/06/01
- [libmicrohttpd] 11/36: test_client_put_stop: fixed typo in comment, gnunet, 2023/06/01
- [libmicrohttpd] 17/36: examples/sessions.c: removed non-portable function and improved safety, gnunet, 2023/06/01
- [libmicrohttpd] 18/36: configure: fixed detection of __FUNCTION__ magic macro, gnunet, 2023/06/01
- [libmicrohttpd] 06/36: test_toolarge: fixed reported error description, gnunet, 2023/06/01
- [libmicrohttpd] 13/36: test_timeout: moved to heavy tests, gnunet, 2023/06/01
- [libmicrohttpd] 16/36: test_post: fixed caseless key name match,
gnunet <=
- [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, 2023/06/01
- [libmicrohttpd] 20/36: tests: unified use of function name macros, gnunet, 2023/06/01