diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-09-05 14:35:57 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-09-05 14:36:19 +0200 |
commit | 25fd1057c9c86e32d43fce147e80f47f6b385c84 (patch) | |
tree | e6e4aafa0bc6981f961cc4421cb60ab7a908264f /lib/setopt.c | |
parent | d7c4213bd0cfd16054fa75a887d3e1a9a796cb53 (diff) | |
download | curl-25fd1057c9c86e32d43fce147e80f47f6b385c84.tar.gz |
url: default to CURL_HTTP_VERSION_2TLS if built h2-enabled
Closes #2709
Diffstat (limited to 'lib/setopt.c')
-rw-r--r-- | lib/setopt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/setopt.c b/lib/setopt.c index 5c5f4b381..f2fadc786 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -841,6 +841,8 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, #else if(arg > CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE) return CURLE_UNSUPPORTED_PROTOCOL; + if(arg == CURL_HTTP_VERSION_NONE) + arg = CURL_HTTP_VERSION_2TLS; #endif data->set.httpversion = arg; break; |