mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 01:33:04 +00:00
Enhancements
Fix support for generating Loon configs. Refactor libraries.
This commit is contained in:
1 parent
4205dee94a
commit
deb73c5669
24 files changed
+605
-618
No files matched your search
@@ -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")) {
|
||||
|
||||
Reference in new issue
Block a user