You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by hi...@apache.org on 2020/09/16 05:48:22 UTC

[druid] branch master updated: Disable sending server version in response headers (#9832)

This is an automated email from the ASF dual-hosted git repository.

himanshug pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 94226f1  Disable sending server version in response headers (#9832)
94226f1 is described below

commit 94226f1b3d0aadb3a77cabfd5c4c81c1c3388326
Author: Atul Mohan <at...@gmail.com>
AuthorDate: Wed Sep 16 00:48:00 2020 -0500

    Disable sending server version in response headers (#9832)
    
    * Toggle sending of server version
    
    * Remove config
    
    Co-authored-by: Atul Mohan <at...@yahoo-inc.com>
---
 .../org/apache/druid/server/initialization/jetty/JettyServerModule.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerModule.java b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerModule.java
index 39ccf8c..6fc105f 100644
--- a/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerModule.java
+++ b/server/src/main/java/org/apache/druid/server/initialization/jetty/JettyServerModule.java
@@ -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),


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org