mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-09 11:17:30 -03:00
Use HTTP 1.1 in Nintendo API requests
This commit is contained in:
parent
f1685eab66
commit
026d547dcc
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,7 @@ CurlRequestHelper::CurlRequestHelper()
|
|||
|
||||
curl_easy_setopt(m_curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
curl_easy_setopt(m_curl, CURLOPT_MAXREDIRS, 2);
|
||||
curl_easy_setopt(m_curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
|
||||
|
||||
if(GetConfig().proxy_server.GetValue() != "")
|
||||
{
|
||||
|
@ -263,6 +264,7 @@ CurlSOAPHelper::CurlSOAPHelper(NetworkService service)
|
|||
m_curl = curl_easy_init();
|
||||
curl_easy_setopt(m_curl, CURLOPT_WRITEFUNCTION, __curlWriteCallback);
|
||||
curl_easy_setopt(m_curl, CURLOPT_WRITEDATA, this);
|
||||
curl_easy_setopt(m_curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
|
||||
|
||||
// SSL
|
||||
if (!IsNetworkServiceSSLDisabled(service))
|
||||
|
|
Loading…
Reference in a new issue