1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

http2: Don't send Upgrade headers when we already do HTTP/2

This commit is contained in:
Tatsuhiro Tsujikawa 2014-11-15 00:38:29 +09:00 committed by Daniel Stenberg
parent 08f9c90981
commit ed77fdf389

View File

@ -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 */