hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vinayakum...@apache.org
Subject [3/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:06 GMT
HADOOP-13414. Hide Jetty Server version header in HTTP responses. Contributed by Surendra Singth
Lilhore.

(cherry picked from commit 1e8301b215f79d48bbb58e2348945144d4c37997)


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

Branch: refs/heads/branch-2.8
Commit: cd6ee04274cfd14813bf0c492d107c5a3008336a
Parents: 71f4940
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:07:18 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/cd6ee042/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 bc389db..9849fe1 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
@@ -413,6 +413,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