If you're using Apache Karaf / Pax Web, you can simply change it in
'etc/jetty.xml':
<Configure id="Server" class="org.eclipse.jetty.server.Server">
...
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
...
<Set name="sendServerVersion">false</Set>
Apart from that, I noticed that we weren't configuring sendServerVersion
for Blueprint/OSGi so I fixed it here:
https://github.com/apache/cxf/commit/b9380e98129bcbdc5d3f6e8f4efac5949df70f25
Colm.
On Sat, Mar 7, 2020 at 2:49 AM Katsuya Tomioka <[email protected]>
wrote:
> Is it possible to set "sendServerVersion" false for Jetty connector via
> OSGi, without Blueprint? We are on CXF 3.3.4. I'd like to strip "Server:"
> header from output.
>
> -Katsuya
>