aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-17 00:19:23 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-17 00:19:23 +0100
commit401a1f82efb39a806c2301f8938557fef14ea174 (patch)
treeb68cf3d72cec524de297b49e8ad0ab00b8caee42
parentd61c2e400ac07574fc326c8d2be6f51be7c2a25c (diff)
use strcasecmp for methods
-rw-r--r--src/exchange/taler-exchange-httpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c
index b2c9e4d84..1b9333df8 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -425,15 +425,15 @@ handle_mhd_request (void *cls,
/* The URL is a match! What we now do depends on the method. */
- if (0 == strcmp (method, MHD_HTTP_METHOD_OPTIONS))
+ if (0 == strcasecmp (method, MHD_HTTP_METHOD_OPTIONS))
{
GNUNET_async_scope_restore (&old_scope);
return TALER_MHD_reply_cors_preflight (connection);
}
if ( (NULL == rh->method) ||
- (0 == strcmp (method,
- rh->method)) )
+ (0 == strcasecmp (method,
+ rh->method)) )
{
/* FIXME: consider caching 'rh' in '**connection_cls' to
avoid repeated lookup! */