mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
HttpUtil: Allow "http" scheme to be mixed case.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user