From 6448946ac32af51894e41d9b2e93d1ddd7f865f3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 31 Mar 2014 09:00:58 +0200 Subject: http2: let openssl mention the exact protocol negotiated Remove a superfluous "negotiated http2" info line --- lib/http.c | 1 - lib/vtls/openssl.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/http.c b/lib/http.c index 53e5af04f..789ee8fa9 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1675,7 +1675,6 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) switch (conn->negnpn) { case NPN_HTTP2: - infof(data, "Negotiated http2\n"); Curl_http2_init(conn); Curl_http2_switched(conn); break; diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index dc94b8982..35912c74c 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -1430,7 +1430,8 @@ select_next_proto_cb(SSL *ssl, (void)ssl; if(retval == 1) { - infof(conn->data, "NPN, negotiated HTTP2\n"); + infof(conn->data, "NPN, negotiated HTTP2 (%s)\n", + NGHTTP2_PROTO_VERSION_ID); conn->negnpn = NPN_HTTP2; } else if(retval == 0) { -- cgit v1.2.3