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

View File

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