HADOOP-13414. Hide Jetty Server version header in HTTP responses. Contributed by Surendra Singth Lilhore.

This commit is contained in:
Vinayakumar B 2017-07-05 16:05:18 +05:30
parent b17e655b70
commit a180ba4081
1 changed files with 1 additions and 0 deletions

View File

@ -431,6 +431,7 @@ public final class HttpServer2 implements FilterContainer {
HttpConfiguration httpConfig = new HttpConfiguration();
httpConfig.setRequestHeaderSize(requestHeaderSize);
httpConfig.setResponseHeaderSize(responseHeaderSize);
httpConfig.setSendServerVersion(false);
for (URI ep : endpoints) {
final ServerConnector connector;