mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
HTTPDownloader: Drop user agent from base class
This commit is contained in:
parent
a8b2268e47
commit
72e6291107
|
@ -75,7 +75,6 @@ protected:
|
|||
u32 LockedGetActiveRequestCount();
|
||||
void LockedPollRequests(std::unique_lock<std::mutex>& lock);
|
||||
|
||||
std::string m_user_agent;
|
||||
float m_timeout;
|
||||
u32 m_max_active_requests;
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ bool HTTPDownloaderWinHttp::Initialize(const char* user_agent)
|
|||
const DWORD dwAccessType =
|
||||
IsWindows8Point1OrGreater() ? WINHTTP_ACCESS_TYPE_AUTOMATIC_PROXY : WINHTTP_ACCESS_TYPE_DEFAULT_PROXY;
|
||||
|
||||
m_hSession = WinHttpOpen(StringUtil::UTF8StringToWideString(m_user_agent).c_str(), dwAccessType, nullptr, nullptr,
|
||||
m_hSession = WinHttpOpen(StringUtil::UTF8StringToWideString(user_agent).c_str(), dwAccessType, nullptr, nullptr,
|
||||
WINHTTP_FLAG_ASYNC);
|
||||
if (m_hSession == NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue