Skip to content
Snippets Groups Projects
Verified Commit d9268930 authored by Sateallia's avatar Sateallia Committed by Nicolas Werner
Browse files

curl 7.85.00 deprecation for CURLOPT_PROTOCOLS

parent 2a20a129
No related branches found
No related tags found
No related merge requests found
Pipeline #4747 passed
......@@ -124,7 +124,11 @@ Request::Request(Client *client, Method m, std::string url__) : url_(std::move(u
curl_easy_setopt(this->easy, CURLOPT_NOPROGRESS, 1L);
curl_easy_setopt(this->easy, CURLOPT_XFERINFOFUNCTION, prog_cb);
curl_easy_setopt(this->easy, CURLOPT_XFERINFODATA, this);
#if CURL_AT_LEAST_VERSION(7, 85, 0)
curl_easy_setopt(this->easy, CURLOPT_PROTOCOLS_STR, "HTTPS,HTTP");
#else
curl_easy_setopt(this->easy, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
#endif
// enable altsvc support, which allows us to switch to http3
curl_easy_setopt(this->easy, CURLOPT_ALTSVC_CTRL, CURLALTSVC_H1|CURLALTSVC_H2|CURLALTSVC_H3);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment