aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-03-29 16:08:38 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-03-29 16:08:38 +0200
commit1fc767210c7c3083318ccd1f2a5741e1c757278f (patch)
treeca298aa9d7965750aac2f1a831d5e82e269bce90
parent2505fbbdb57d2c0d2030d4f29169e5d431803b54 (diff)
http2: set correct scheme in handler structs [regression]
Since commit a5aec58 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
-rw-r--r--lib/http2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http2.c b/lib/http2.c
index 91abbf04e..13f83947c 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -155,7 +155,7 @@ void Curl_http2_setup_conn(struct connectdata *conn)
* HTTP to HTTP2.
*/
const struct Curl_handler Curl_handler_http2 = {
- "HTTP2", /* scheme */
+ "HTTP", /* scheme */
ZERO_NULL, /* setup_connection */
Curl_http, /* do_it */
Curl_http_done, /* done */
@@ -175,7 +175,7 @@ const struct Curl_handler Curl_handler_http2 = {
};
const struct Curl_handler Curl_handler_http2_ssl = {
- "HTTP2", /* scheme */
+ "HTTPS", /* scheme */
ZERO_NULL, /* setup_connection */
Curl_http, /* do_it */
Curl_http_done, /* done */