Merge pull request #12181 from JosJuice/curl-response-code-long

Common: Fix HttpRequest::GetLastResponseCode stack corruption
This commit is contained in:
Admiral H. Curtiss 2023-09-16 16:48:47 +02:00 committed by GitHub
commit cc7fadfa4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,9 +159,9 @@ bool HttpRequest::Impl::IsValid() const
s32 HttpRequest::Impl::GetLastResponseCode()
{
s32 response_code{};
long response_code{};
curl_easy_getinfo(m_curl.get(), CURLINFO_RESPONSE_CODE, &response_code);
return response_code;
return static_cast<s32>(response_code);
}
void HttpRequest::Impl::SetCookies(const std::string& cookies)