diff options
Diffstat (limited to 'src/util/mhd.c')
-rw-r--r-- | src/util/mhd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/mhd.c b/src/util/mhd.c index 9684f979f..6f6b38d35 100644 --- a/src/util/mhd.c +++ b/src/util/mhd.c @@ -31,7 +31,7 @@ * #GNUNET_NO if the MHD connection is using http, * #GNUNET_SYSERR if the connection type couldn't be determined */ -int +enum GNUNET_GenericReturnValue TALER_mhd_is_https (struct MHD_Connection *connection) { const union MHD_ConnectionInfo *ci; @@ -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; |