Enhancements

Fix support for generating Loon configs.
Refactor libraries.
This commit is contained in:
Tindy X committed 2023-07-03 13:52:52 +08:00
1 parent 4205dee94a
commit deb73c5669
24 files changed
+605 -618

No files matched your search

+2 -2
View File
@@ -295,10 +295,10 @@ static int curlGet(const FetchArgument &argument, FetchResult &result)
static std::string dataGet(const std::string &url)
{
if (!startsWith(url, "data:"))
return std::string();
return "";
std::string::size_type comma = url.find(',');
if (comma == std::string::npos || comma == url.size() - 1)
return std::string();
return "";
std::string data = urlDecode(url.substr(comma + 1));
if (endsWith(url.substr(0, comma), ";base64")) {