From 170402203ae8ba7060da8149de47c875ff4d1946 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 1 Dec 2021 17:56:47 +0100 Subject: make check case-insensitive --- src/util/mhd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/util/mhd.c') 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; -- cgit v1.2.3