From 8f8c4d3d953858698b7e4739d47d5c8b6a9291be Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 10 Jan 2017 00:15:39 -0800 Subject: [PATCH] HttpUtil: Allow "http" scheme to be mixed case. --- src/HttpUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpUtil.cpp b/src/HttpUtil.cpp index 557898903a..0a7b0ad07c 100644 --- a/src/HttpUtil.cpp +++ b/src/HttpUtil.cpp @@ -199,7 +199,7 @@ HttpLocation::HttpLocation(llvm::StringRef url_, bool* error, // scheme: llvm::StringRef scheme; std::tie(scheme, query) = query.split(':'); - if (scheme != "http") { + if (!scheme.equals_lower("http")) { ERROR(cameraName << ": only supports http URLs, got \"" << url << "\""); *error = true; return;