HBASE-24054 To be safe, jetty's version number should be blocked.

This commit is contained in:
申胜利 2020-10-06 08:36:13 +08:00 committed by stack
parent 4df536e31d
commit 1de1ec176f
1 changed files with 1 additions and 0 deletions

View File

@ -414,6 +414,7 @@ public class HttpServer implements FilterContainer {
httpConfig.setHeaderCacheSize(DEFAULT_MAX_HEADER_SIZE); httpConfig.setHeaderCacheSize(DEFAULT_MAX_HEADER_SIZE);
httpConfig.setResponseHeaderSize(DEFAULT_MAX_HEADER_SIZE); httpConfig.setResponseHeaderSize(DEFAULT_MAX_HEADER_SIZE);
httpConfig.setRequestHeaderSize(DEFAULT_MAX_HEADER_SIZE); httpConfig.setRequestHeaderSize(DEFAULT_MAX_HEADER_SIZE);
httpConfig.setSendServerVersion(false);
if ("http".equals(scheme)) { if ("http".equals(scheme)) {
listener = new ServerConnector(server.webServer, new HttpConnectionFactory(httpConfig)); listener = new ServerConnector(server.webServer, new HttpConnectionFactory(httpConfig));