Commit 1fc76721 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

http2: set correct scheme in handler structs [regression]

Since commit a5aec587 the handler schemes need to match for the
connections to be reused and for HTTP/2 multiplexing to work, reusing
connections is very important!

Closes #736
parent 2505fbbd
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -155,7 +155,7 @@ void Curl_http2_setup_conn(struct connectdata *conn)
 * HTTP to HTTP2.
 * HTTP to HTTP2.
 */
 */
const struct Curl_handler Curl_handler_http2 = {
const struct Curl_handler Curl_handler_http2 = {
  "HTTP2",                              /* scheme */
  "HTTP",                               /* scheme */
  ZERO_NULL,                            /* setup_connection */
  ZERO_NULL,                            /* setup_connection */
  Curl_http,                            /* do_it */
  Curl_http,                            /* do_it */
  Curl_http_done,                       /* done */
  Curl_http_done,                       /* done */
@@ -175,7 +175,7 @@ const struct Curl_handler Curl_handler_http2 = {
};
};


const struct Curl_handler Curl_handler_http2_ssl = {
const struct Curl_handler Curl_handler_http2_ssl = {
  "HTTP2",                              /* scheme */
  "HTTPS",                              /* scheme */
  ZERO_NULL,                            /* setup_connection */
  ZERO_NULL,                            /* setup_connection */
  Curl_http,                            /* do_it */
  Curl_http,                            /* do_it */
  Curl_http_done,                       /* done */
  Curl_http_done,                       /* done */