Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coeurl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
coeurl
Commits
d9268930
Verified
Commit
d9268930
authored
1 year ago
by
Sateallia
Committed by
Nicolas Werner
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
curl 7.85.00 deprecation for CURLOPT_PROTOCOLS
parent
2a20a129
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#4747
passed
1 year ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/request.cpp
+4
-0
4 additions, 0 deletions
lib/request.cpp
with
4 additions
and
0 deletions
lib/request.cpp
+
4
−
0
View file @
d9268930
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment