summaryrefslogtreecommitdiff
path: root/src/util/mhd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-01 17:56:47 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-01 17:56:47 +0100
commit170402203ae8ba7060da8149de47c875ff4d1946 (patch)
tree9ec3052bf1e2305c394e99451e4d85f1db03f30c /src/util/mhd.c
parent7373bbc5c8a0fde4868ca25cfcada29b7b2520da (diff)
downloadexchange-170402203ae8ba7060da8149de47c875ff4d1946.tar.gz
exchange-170402203ae8ba7060da8149de47c875ff4d1946.tar.bz2
exchange-170402203ae8ba7060da8149de47c875ff4d1946.zip
make check case-insensitive
Diffstat (limited to 'src/util/mhd.c')
-rw-r--r--src/util/mhd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/mhd.c b/src/util/mhd.c
index 2f262340f..6f6b38d35 100644
--- a/src/util/mhd.c
+++ b/src/util/mhd.c
@@ -42,11 +42,11 @@ TALER_mhd_is_https (struct MHD_Connection *connection)
if (NULL != forwarded_proto)
{
- if (0 == strcmp (forwarded_proto,
- "https"))
+ if (0 == strcasecmp (forwarded_proto,
+ "https"))
return GNUNET_YES;
- if (0 == strcmp (forwarded_proto,
- "http"))
+ if (0 == strcasecmp (forwarded_proto,
+ "http"))
return GNUNET_NO;
GNUNET_break (0);
return GNUNET_SYSERR;