mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
http2: Don't send Upgrade headers when we already do HTTP/2
This commit is contained in:
parent
08f9c90981
commit
ed77fdf389
@ -2276,6 +2276,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
|||||||
return result;
|
return result;
|
||||||
|
|
||||||
if(!(conn->handler->flags&PROTOPT_SSL) &&
|
if(!(conn->handler->flags&PROTOPT_SSL) &&
|
||||||
|
conn->httpversion != 20 &&
|
||||||
(data->set.httpversion == CURL_HTTP_VERSION_2_0)) {
|
(data->set.httpversion == CURL_HTTP_VERSION_2_0)) {
|
||||||
/* append HTTP2 upgrade magic stuff to the HTTP request if it isn't done
|
/* append HTTP2 upgrade magic stuff to the HTTP request if it isn't done
|
||||||
over SSL */
|
over SSL */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user