From 1de1ec176f9c2b373f38ad4e9c004e989ad3faa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B3=E8=83=9C=E5=88=A9?= <48829688+shenshengli@users.noreply.github.com> Date: Tue, 6 Oct 2020 08:36:13 +0800 Subject: [PATCH] HBASE-24054 To be safe, jetty's version number should be blocked. --- .../src/main/java/org/apache/hadoop/hbase/http/HttpServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java b/hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java index 8a47ca99ea3..1863557529d 100644 --- a/hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java +++ b/hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java @@ -414,6 +414,7 @@ public class HttpServer implements FilterContainer { httpConfig.setHeaderCacheSize(DEFAULT_MAX_HEADER_SIZE); httpConfig.setResponseHeaderSize(DEFAULT_MAX_HEADER_SIZE); httpConfig.setRequestHeaderSize(DEFAULT_MAX_HEADER_SIZE); + httpConfig.setSendServerVersion(false); if ("http".equals(scheme)) { listener = new ServerConnector(server.webServer, new HttpConnectionFactory(httpConfig));