HBASE-24054 To be safe, jetty's version number should be blocked.
This commit is contained in:
parent
4df536e31d
commit
1de1ec176f
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue