I use spray.io
to serve HTTP requests. In response there is information about spray framework that I would like to remove. So how to remove "Server: spray-can/1.3.3"
from the response header in spray
?
Asked
Active
Viewed 349 times
0

ReshaD
- 936
- 2
- 18
- 30

Yuli Reiri
- 591
- 7
- 18
1 Answers
4
You can set this via application.conf
:
spray.can {
server {
# The value of the `Server` header to produce.
# Set to the empty string to disable rendering of the server header.
server-header = spray-can/${spray.version}
}
}

wlk
- 5,695
- 6
- 54
- 72