Skip to content

Commit

Permalink
Use CURLOPT_USERAGENT instead of manually setting User-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Exzap committed May 22, 2024
1 parent a059338 commit b048a1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Cemu/napi/napi_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,8 @@ bool CurlSOAPHelper::submitRequest()
headers = curl_slist_append(headers, "Accept-Charset: UTF-8");
headers = curl_slist_append(headers, fmt::format("SOAPAction: urn:{}.wsapi.broadon.com/{}", m_serviceType, m_requestMethod).c_str());
headers = curl_slist_append(headers, "Accept: */*");
headers = curl_slist_append(headers, "User-Agent: EVL NUP 040800 Sep 18 2012 20:20:02");

curl_easy_setopt(m_curl, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(m_curl, CURLOPT_USERAGENT, "EVL NUP 040800 Sep 18 2012 20:20:02");

// send request
auto res = curl_easy_perform(m_curl);
Expand Down

0 comments on commit b048a1f

Please sign in to comment.