mirror of https://github.com/apache/druid.git
Disable sending server version in response headers (#9832)
* Toggle sending of server version * Remove config Co-authored-by: Atul Mohan <atulmohan@yahoo-inc.com>
This commit is contained in:
parent
b6ad790dc7
commit
94226f1b3d
|
@ -238,6 +238,7 @@ public class JettyServerModule extends JerseyServletModule
|
|||
}
|
||||
|
||||
httpConfiguration.setRequestHeaderSize(config.getMaxRequestHeaderSize());
|
||||
httpConfiguration.setSendServerVersion(false);
|
||||
final ServerConnector connector = new ServerConnector(server, new HttpConnectionFactory(httpConfiguration));
|
||||
if (node.isBindOnHost()) {
|
||||
connector.setHost(node.getHost());
|
||||
|
@ -323,6 +324,7 @@ public class JettyServerModule extends JerseyServletModule
|
|||
httpsConfiguration.setSecurePort(node.getTlsPort());
|
||||
httpsConfiguration.addCustomizer(new SecureRequestCustomizer());
|
||||
httpsConfiguration.setRequestHeaderSize(config.getMaxRequestHeaderSize());
|
||||
httpsConfiguration.setSendServerVersion(false);
|
||||
final ServerConnector connector = new ServerConnector(
|
||||
server,
|
||||
new SslConnectionFactory(sslContextFactory, HTTP_1_1_STRING),
|
||||
|
|
Loading…
Reference in New Issue