From 4d259368d035512a818c08a6f45789b1e4eeda8b Mon Sep 17 00:00:00 2001 From: pcarana Date: Fri, 24 Jul 2020 13:00:16 -0500 Subject: [PATCH] Ignore case when comparing URI protocol --- src/uri.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uri.c b/src/uri.c index 1b9e05d0..eb5901e2 100644 --- a/src/uri.c +++ b/src/uri.c @@ -1,6 +1,7 @@ #include "uri.h" #include +#include #include "common.h" #include "config.h" #include "log.h" @@ -193,7 +194,7 @@ validate_uri_begin(char const *uri_pfx, const size_t uri_pfx_len, char const *global, size_t global_len, size_t *size, int error) { if (global_len < uri_pfx_len - || strncmp(uri_pfx, global, uri_pfx_len) != 0) { + || strncasecmp(uri_pfx, global, uri_pfx_len) != 0) { if (!error) return -EINVAL; pr_val_err("Global URI '%s' does not begin with '%s'.", -- 2.47.3