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 HttpServer2 build() throws IOException {
|
||||
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
Block a user