[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 18/29: curl:getparameter return error for --http3 if libcurl doe
From: |
gnunet |
Subject: |
[gnurl] 18/29: curl:getparameter return error for --http3 if libcurl doesn't support |
Date: |
Fri, 10 Jan 2020 23:05:56 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 459d0db45b263ab74940f526aec3799329940e52
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sun Jan 5 17:12:03 2020 +0100
curl:getparameter return error for --http3 if libcurl doesn't support
Closes #4785
---
src/tool_getparam.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index ced453192..8df6e5e24 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2019, Daniel Stenberg, <address@hidden>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <address@hidden>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -1209,7 +1209,10 @@ ParameterError getparameter(const char *flag, /* f or
-long-flag */
break;
case '4': /* --http3 */
/* HTTP version 3 go over QUIC - at once */
- config->httpversion = CURL_HTTP_VERSION_3;
+ if(curlinfo->features & CURL_VERSION_HTTP3)
+ config->httpversion = CURL_HTTP_VERSION_3;
+ else
+ return PARAM_LIBCURL_DOESNT_SUPPORT;
break;
case '9':
/* Allow HTTP/0.9 responses! */
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 12/29: tests: Fix bounce requests with truncated writes, (continued)
- [gnurl] 12/29: tests: Fix bounce requests with truncated writes, gnunet, 2020/01/10
- [gnurl] 21/29: file: on Windows, refuse paths that start with \\, gnunet, 2020/01/10
- [gnurl] 20/29: CURLOPT_READFUNCTION.3: fix fopen params in example, gnunet, 2020/01/10
- [gnurl] 19/29: CURLOPT_READFUNCTION.3: fix variable name in example, gnunet, 2020/01/10
- [gnurl] 13/29: COPYING: it's 2020!, gnunet, 2020/01/10
- [gnurl] 24/29: multi.h: move INITIAL_MAX_CONCURRENT_STREAMS from public header, gnunet, 2020/01/10
- [gnurl] 17/29: docs: mention CURL_MAX_INPUT_LENGTH restrictions, gnunet, 2020/01/10
- [gnurl] 26/29: RELEASE-PROCEDURE: add four future release dates, gnunet, 2020/01/10
- [gnurl] 14/29: lib: fix compiler warnings with `CURL_DISABLE_VERBOSE_STRINGS`, gnunet, 2020/01/10
- [gnurl] 22/29: curl -w: handle a blank input file correctly, gnunet, 2020/01/10
- [gnurl] 18/29: curl:getparameter return error for --http3 if libcurl doesn't support,
gnunet <=
- [gnurl] 25/29: TrackMemory tests: always remove CR before LF, gnunet, 2020/01/10
- [gnurl] 15/29: curl: cleanup multi handle on failure, gnunet, 2020/01/10
- [gnurl] 16/29: curl: properly free mimepost data, gnunet, 2020/01/10
- [gnurl] 27/29: THANKS: updated with names from the 7.68.0 release, gnunet, 2020/01/10
- [gnurl] 28/29: RELEASE-NOTES: 7.68.0, gnunet, 2020/01/10
- [gnurl] 29/29: Merge tag 'curl-7_68_0', gnunet, 2020/01/10