mirror of
https://github.com/curl/curl.git
synced 2026-04-22 15:32:11 +03:00
http2: Don't send Upgrade headers when we already do HTTP/2
This commit is contained in:
parent
08f9c90981
commit
ed77fdf389
1 changed files with 1 additions and 0 deletions
|
|
@ -2276,6 +2276,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
|||
return result;
|
||||
|
||||
if(!(conn->handler->flags&PROTOPT_SSL) &&
|
||||
conn->httpversion != 20 &&
|
||||
(data->set.httpversion == CURL_HTTP_VERSION_2_0)) {
|
||||
/* append HTTP2 upgrade magic stuff to the HTTP request if it isn't done
|
||||
over SSL */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue