Add support for data: URIs (#62)

Add support for data: URIs.
Code conversion renaming (GBK->ACP).
This commit is contained in:
Mingye Wang authored and GitHub committed 2020-02-15 15:14:43 +08:00
1 parent b818df6ac8
commit b950260e68
13 files changed
+63 -17

No files matched your search

+1 -1
View File
@@ -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)};
}