remove Server: trillium/0.2.1 header #110
Unanswered
prabirshrestha
asked this question in
Q&A
Replies: 1 comment
-
Set the server header to something else if you are concerned about revealing security details. Trillium-http will only set the server header if it has not already been set. There is not currently a way to remove a header, and at the moment that doesn't seem worth the complexity (it would require introducing an empty header value and checking for it in a number of places). use trillium::{Conn, KnownHeaderName};
async fn my_server_header(conn: Conn) -> Conn {
conn.with_header(KnownHeaderName::Server, "my-app")
}
The next release of trillium-http will include #113, which will enable |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I remove the
Server
header from response? I always consider this to be a security issue since others can know which version of the server we are using and possibly try to exploit known issues.I have tried the following with no success.
Should this header not be added by default to responses?
Beta Was this translation helpful? Give feedback.
All reactions