diff options
author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2024-02-05 13:33:20 +0200 |
---|---|---|
committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2024-04-10 13:33:00 +0300 |
commit | b0087c6f6f297fee637c3424c6da1f7eb1866573 (patch) | |
tree | 4b1ada7a57184edc31a68969fb2ec26e63121210 | |
parent | 7ad40cb3f5d302b0e58836df6d8dd49bb4c9cfa2 (diff) |
HttpRequest: replace deprecated CURLOPT_PROTOCOLS option
CURLOPT_PROTOCOLS is deprecated option since 7.85.0, use the
replacement option CURLOPT_PROTOCOLS_STR instead.
Task-number: QLS-686
Pick-to: 3.0
Change-Id: Ic4293b88a6e16405c5c4ad6fded4a95fbba7ecc8
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
-rw-r--r-- | src/libs/qlicenseservice/httpclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qlicenseservice/httpclient.cpp b/src/libs/qlicenseservice/httpclient.cpp index 1bf5bde..a0546f5 100644 --- a/src/libs/qlicenseservice/httpclient.cpp +++ b/src/libs/qlicenseservice/httpclient.cpp @@ -119,7 +119,7 @@ HttpResult *HttpRequest::doRequest(const std::string &payload) curl_easy_setopt(m_curl, CURLOPT_HTTPHEADER, m_headers); if (m_forceHttps) - curl_easy_setopt(m_curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS); + curl_easy_setopt(m_curl, CURLOPT_PROTOCOLS_STR, "https"); if (!m_caBundlePath.empty()) curl_easy_setopt(m_curl, CURLOPT_CAINFO, m_caBundlePath.c_str()); |