util/UriUtil: make schemes
array static
This commit is contained in:
parent
5716cde1fb
commit
43c32372e7
@ -167,7 +167,11 @@ gcc_pure
|
||||
static const char *
|
||||
SkipUriScheme(const char *uri) noexcept
|
||||
{
|
||||
const char *const schemes[] = { "http://", "https://", "ftp://" };
|
||||
static const char *const schemes[] = {
|
||||
"http://", "https://",
|
||||
"ftp://",
|
||||
};
|
||||
|
||||
for (auto scheme : schemes) {
|
||||
auto result = StringAfterPrefixCaseASCII(uri, scheme);
|
||||
if (result != nullptr)
|
||||
|
Loading…
Reference in New Issue
Block a user