Skip to content

Commit

Permalink
docs: fix string suggesting HTTP/2 is not the default
Browse files Browse the repository at this point in the history
Commit 25fd105 made HTTP2 the default, and further down in the
man page that new default is mentioned, but the section at the top
contradicted it until now.

Also remove claim that setting the HTTP version is not sensible.

Closes #4075
  • Loading branch information
nh2 authored and bagder committed Jun 25, 2019
1 parent 8c34a4d commit 8dd041b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/libcurl/opts/CURLOPT_HTTP_VERSION.3
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ CURLOPT_HTTP_VERSION \- specify HTTP protocol version to use
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTP_VERSION, long version); CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTP_VERSION, long version);
.SH DESCRIPTION .SH DESCRIPTION
Pass \fIversion\fP a long, set to one of the values described below. They ask Pass \fIversion\fP a long, set to one of the values described below. They ask
libcurl to use the specific HTTP versions. This is not sensible to do unless libcurl to use the specific HTTP versions.
you have a good reason. You have to set this option if you want to use
libcurl's HTTP/2 support.


Note that the HTTP version is just a request. libcurl will still prioritize to Note that the HTTP version is just a request. libcurl will still prioritize to
re-use an existing connection so it might then re-use a connection using a re-use an existing connection so it might then re-use a connection using a
Expand Down

0 comments on commit 8dd041b

Please sign in to comment.