Merge branch 'v0.21.x'

This commit is contained in:
Max Kellermann
2020-07-01 16:56:17 +02:00
6 changed files with 38 additions and 5 deletions

View File

@@ -70,7 +70,12 @@ 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://",
"smb://",
};
for (auto scheme : schemes) {
auto result = StringAfterPrefixCaseASCII(uri, scheme);
if (result != nullptr)