HADOOP-13414. Hide Jetty Server version header in HTTP responses. Contributed by Surendra Singth Lilhore.
This commit is contained in:
parent
b17e655b70
commit
a180ba4081
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue