mirror of
https://github.com/curl/curl.git
synced 2026-07-23 02:07:15 +03:00
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
This commit is contained in:
parent
cb232b13de
commit
d4afa0fc20
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue