HttpUtil: Allow "http" scheme to be mixed case.

This commit is contained in:
Peter Johnson
2017-01-10 00:15:39 -08:00
parent d47bd1ecbc
commit 8f8c4d3d95

View File

@@ -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;