Skip to content

Commit 026d547

Browse files
committed
Use HTTP 1.1 in Nintendo API requests
1 parent f1685ea commit 026d547

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Cemu/napi/napi_helper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ CurlRequestHelper::CurlRequestHelper()
107107

108108
curl_easy_setopt(m_curl, CURLOPT_FOLLOWLOCATION, 1);
109109
curl_easy_setopt(m_curl, CURLOPT_MAXREDIRS, 2);
110+
curl_easy_setopt(m_curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
110111

111112
if(GetConfig().proxy_server.GetValue() != "")
112113
{
@@ -263,6 +264,7 @@ CurlSOAPHelper::CurlSOAPHelper(NetworkService service)
263264
m_curl = curl_easy_init();
264265
curl_easy_setopt(m_curl, CURLOPT_WRITEFUNCTION, __curlWriteCallback);
265266
curl_easy_setopt(m_curl, CURLOPT_WRITEDATA, this);
267+
curl_easy_setopt(m_curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
266268

267269
// SSL
268270
if (!IsNetworkServiceSSLDisabled(service))

0 commit comments

Comments
 (0)