Skip to content

Commit

Permalink
different operating systems were invented to waste time and actually …
Browse files Browse the repository at this point in the history
…no other purpose
  • Loading branch information
poco0317 committed Jul 21, 2024
1 parent 0b63448 commit b917b05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Etterna/Singletons/DownloadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,17 @@ EmptyTempDLFileDir()
#pragma region curl
inline std::string
useragent() {
return fmt::format("Etterna/{} ({})",
static auto agent = fmt::format("Etterna/{} ({})",
GAMESTATE->GetEtternaVersion(),
Core::Platform::getSystem());
return agent;
}

inline CURL*
initBasicCURLHandle()
{
CURL* curlHandle = curl_easy_init();
curl_easy_setopt_log_err(curlHandle, CURLOPT_USERAGENT, useragent());
curl_easy_setopt_log_err(curlHandle, CURLOPT_USERAGENT, useragent().c_str());
curl_easy_setopt_log_err(curlHandle, CURLOPT_ACCEPT_ENCODING, "");
curl_easy_setopt_log_err(curlHandle, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt_log_err(curlHandle, CURLOPT_SSL_VERIFYHOST, 0L);
Expand Down

0 comments on commit b917b05

Please sign in to comment.