From eb903b65c53a3f8caecdd3e2f907254cd37e0acf Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 3 Apr 2018 13:06:02 +0000 Subject: [PATCH] On the trunk: * mod_http2: calculate unencrypted connection sniffing base64 only when log level is at required height. [Ruediger Pluem] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1828232 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_h2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/http2/h2_h2.c b/modules/http2/h2_h2.c index fe5fa5429e3..72e938c029f 100644 --- a/modules/http2/h2_h2.c +++ b/modules/http2/h2_h2.c @@ -637,7 +637,7 @@ int h2_h2_process_conn(conn_rec* c) } h2_ctx_protocol_set(ctx, h2_h2_is_tls(c)? "h2" : "h2c"); } - else { + else if (APLOGctrace2(c)) { ap_log_cerror(APLOG_MARK, APLOG_TRACE2, 0, c, "h2_h2, not detected in %d bytes(base64): %s", (int)slen, h2_util_base64url_encode(s, slen, c->pool)); -- 2.47.3