Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ability to not output Server header #3288

Closed
thehesiod opened this issue Sep 24, 2018 · 4 comments
Closed

ability to not output Server header #3288

thehesiod opened this issue Sep 24, 2018 · 4 comments
Labels

Comments

@thehesiod
Copy link
Contributor

Long story short

It may be desirable to hide which server is running to avoid making it easy to target vulnerabilities. Currently the "server" header is populated without any mechanism to disable/change it.

Expected behaviour

Ability to disable/change the server header value

Actual behaviour

server header populated with current aiohttp/python version

Steps to reproduce

Start server and curl endpoint, look at headers returned.

@thehesiod
Copy link
Contributor Author

I'll work on a PR today to parameterize this.

@asvetlov
Copy link
Member

GitMate.io thinks possibly related issues are #1958 (Possibility to disable Server header), #2022 ([enhancement] ability to return redirect responses which don't have 'location' header), #2637 (Stop server error), #3140 (Q: possible to set Server header with web.Server?), and #1652 (Trailer headers).

@thehesiod
Copy link
Contributor Author

hah, nice!

@lock
Copy link

lock bot commented Oct 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs.
If you feel like there's important points made in this discussion, please include those exceprts into that [new issue].
[new issue]: https://github.com/aio-libs/aiohttp/issues/new

@lock lock bot added the outdated label Oct 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants