mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Add support for data: URIs (#62)
Add support for data: URIs. Code conversion renaming (GBK->ACP).
This commit is contained in:
1 parent
b818df6ac8
commit
b950260e68
13 files changed
+63
-17
No files matched your search
+1
-1
@@ -326,7 +326,7 @@ void refreshRulesets(string_array &ruleset_list, std::vector<ruleset_content> &r
|
||||
{
|
||||
rc = {rule_group, rule_url, fileGet(rule_url, false)};
|
||||
}
|
||||
else if(rule_url.find("http://") == 0 || rule_url.find("https://") == 0)
|
||||
else if(startsWith(rule_url, "http://") || startsWith(rule_url, "https://") || startsWith(rule_url, "data:"))
|
||||
{
|
||||
rc = {rule_group, rule_url, webGet(rule_url, proxy)};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user