gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 153/264: url: allow non-HTTPS altsvc-matching for debug builds


From: gnunet
Subject: [gnurl] 153/264: url: allow non-HTTPS altsvc-matching for debug builds
Date: Thu, 30 Apr 2020 16:07:36 +0200

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit d4afa0fc2076ee0184cf8120d83ac997e8c57692
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Apr 9 15:08:46 2020 +0200

    url: allow non-HTTPS altsvc-matching for debug builds
    
    This is already partly supported but this part was missing.
    Reported-by: James Fuller
    
    Closes #5205
---
 lib/url.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lib/url.c b/lib/url.c
index 47fc66aed..4c62b50ec 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3040,7 +3040,14 @@ static CURLcode parse_connect_to_slist(struct Curl_easy 
*data,
 
 #ifdef USE_ALTSVC
   if(data->asi && !host && (port == -1) &&
-     (conn->handler->protocol == CURLPROTO_HTTPS)) {
+     ((conn->handler->protocol == CURLPROTO_HTTPS) ||
+#ifdef CURLDEBUG
+      /* allow debug builds to circumvent the HTTPS restriction */
+      getenv("CURL_ALTSVC_HTTP")
+#else
+      0
+#endif
+       )) {
     /* no connect_to match, try alt-svc! */
     enum alpnid srcalpnid;
     bool hit;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]