Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ public int getPort() {
private static ServerConnector createConnector(Server server, JettyConfig config) {
// https://www.eclipse.org/jetty/documentation/jetty-11/programming-guide/index.html#pg-server-http-connector-protocol-http2-tls
final HttpConfiguration httpConfig = new HttpConfiguration();
httpConfig.setSendServerVersion(
Configuration.getInstance().getBooleanWithDefault("http.send.server.version", false));
httpConfig.addCustomizer(new ForwardedRequestCustomizer());
httpConfig.addCustomizer(new AllowedHttpMethodsCustomizer(config.allowedHttpMethods()));
if (!config.extraHeaders().isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ public int getPort() {
private static ServerConnector createConnector(Server server, JettyConfig config) {
// https://www.eclipse.org/jetty/documentation/jetty-11/programming-guide/index.html#pg-server-http-connector-protocol-http2-tls
final HttpConfiguration httpConfig = new HttpConfiguration();
httpConfig.setSendServerVersion(
Configuration.getInstance().getBooleanWithDefault("http.send.server.version", false));
httpConfig.addCustomizer(new ForwardedRequestCustomizer());
httpConfig.addCustomizer(new AllowedHttpMethodsCustomizer(config.allowedHttpMethods()));
if (!config.extraHeaders().isEmpty()) {
Expand Down
Loading