Add ServerName and DisableServerHeader configuration directives#621
Open
ngillen wants to merge 1 commit into
Open
Add ServerName and DisableServerHeader configuration directives#621ngillen wants to merge 1 commit into
ngillen wants to merge 1 commit into
Conversation
rofl0r
reviewed
Jul 10, 2026
| if (!k) return -1; | ||
| k = safestrdup (errornbuf); | ||
| if (!k) | ||
| return -1; |
Contributor
There was a problem hiding this comment.
there's no chance getting this merged with random whitespace changes all over the place. change so the result of git diff is identical to git diff -w
Author
There was a problem hiding this comment.
Sorry, before pushing, I ran tinyproxy-indent.sh on the files I changed.
ngillen
force-pushed
the
feat/add-servername-configuration
branch
from
July 10, 2026 19:16
17802b0 to
fa09b39
Compare
Allow operators to control the Server response header sent on error pages. ServerName sets a custom value, DisableServerHeader suppresses the header entirely, hiding the proxy software identity from clients. Signed-off-by: Nicolas Gillen <nicolas.gillen@agregio-solutions.com>
ngillen
force-pushed
the
feat/add-servername-configuration
branch
from
July 10, 2026 20:35
fa09b39 to
47ca873
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Server:HTTP response header was hardcoded totinyproxyin error responses, disclosing the proxy software identity to clients:ServerNamedirective to set a custom value for theServerheaderDisableServerHeaderdirective to suppress the header entirely