bootique / bootique-jetty

Provides Jetty integration with Bootique

Home Page:https://bootique.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Turning off "Server" header

andrus opened this issue · comments

Currently Bootique Jetty apps are hardcoded to include Server: Jetty(9.4.z-SNAPSHOT) header in responses. Occasionally people would like to turn it off, e.g. for security reasons.

In Jetty 9, this a config property of the connector. Specifically in Bootique this property is set in ConnectorFactory.buildHttpConfiguration.

Per this task we will make the Server header false by default and will support the way to explicitly change it to true per connector. E.g.:

jetty:
   connectors:
       - port: 10000
         sendServerVersion: true