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;