Merge remote-tracking branch 'sunshine/master'

This commit is contained in:
Yukino Song
2025-03-20 00:08:48 +08:00
8 changed files with 52 additions and 18 deletions

View File

@@ -24,7 +24,7 @@ namespace http {
);
int reload_user_creds(const std::string &file);
bool download_file(const std::string &url, const std::string &file, long ssl_version = CURL_SSLVERSION_TLSv1_3);
bool download_file(const std::string &url, const std::string &file, long ssl_version = CURL_SSLVERSION_TLSv1_2);
std::string url_escape(const std::string &url);
std::string url_get_host(const std::string &url);