hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vinayakum...@apache.org
Subject [2/3] hadoop git commit: HADOOP-13414. Hide Jetty Server version header in HTTP responses. Contributed by Surendra Singth Lilhore.
Date Wed, 05 Jul 2017 10:38:05 GMT
HADOOP-13414. Hide Jetty Server version header in HTTP responses. Contributed by Surendra Singth
Lilhore.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/1e8301b2
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/1e8301b2
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/1e8301b2

Branch: refs/heads/branch-2
Commit: 1e8301b215f79d48bbb58e2348945144d4c37997
Parents: 3404824
Author: Vinayakumar B <vinayakumarb@apache.org>
Authored: Wed Jul 5 16:06:19 2017 +0530
Committer: Vinayakumar B <vinayakumarb@apache.org>
Committed: Wed Jul 5 16:06:19 2017 +0530

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/http/HttpServer2.java           | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/1e8301b2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
index 588ac52..de68ecb 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer2.java
@@ -424,6 +424,7 @@ public final class HttpServer2 implements FilterContainer {
         : new QueuedThreadPool(maxThreads);
     threadPool.setDaemon(true);
     webServer.setThreadPool(threadPool);
+    webServer.setSendServerVersion(false);
 
     SessionManager sm = webAppContext.getSessionHandler().getSessionManager();
     if (sm instanceof AbstractSessionManager) {


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


Mime
View raw message