Omit the version number from headers and HTML responses #543
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.
closes #542
I haven't written C or Perl in over a decade, but I think I got it (assuming tests pass).
I don't know what effect this line has, so I left it:
tinyproxy/src/html-error.c
Line 277 in 72b93f6
Edit: Aha, I think this fills in the version variable in the HTML templates. I can delete the
{version}
from the HTML templates and leave this variable (in case users want to customize the templates to add the version back) – or I can delete both (meaning users can't restore the variable), or I can not do anything (requiring users to edit templates to prevent disclosure of the version).