mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Optimize codes
Force fileGet to use binary mode to prevent some problem. Make cache system serve the existing cache when download failed. Replace some if-statements with switch-statements. Clean up codes.
This commit is contained in:
8 files changed
+223
-180
No files matched your search
+1
-1
@@ -265,7 +265,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
append_response("GET", "/getlocal", "text/plain;charset=utf-8", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return fileGet(UrlDecode(getUrlArg(argument, "path")), false);
|
||||
return fileGet(UrlDecode(getUrlArg(argument, "path")));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user