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

optionally suppress version info in server response header #4613

Merged
merged 1 commit into from
May 23, 2023

Conversation

rnewson
Copy link
Member

@rnewson rnewson commented May 22, 2023

Add an option to suppress including the CouchDB and OTP versions, defaulting to the current behaviour of including both.

note: If, instead, we omitted this line we would get Mochiweb's default server line rather than no server line.

Copy link
Contributor

@nickva nickva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as intended.

However, we should add it to the docs and the default.ini file.

([email protected])1> config:set("httpd", "send_server_header_versions", "false", false).
ok
 % http $DB
HTTP/1.1 200 OK
Cache-Control: must-revalidate
Content-Length: 244
Content-Type: application/json
Date: Mon, 22 May 2023 16:10:28 GMT
Server: CouchDB
X-Couch-Request-ID: 7fa4c2f909
X-CouchDB-Body-Time: 0
...

@rnewson rnewson requested a review from nickva May 22, 2023 22:06
rel/overlay/etc/default.ini Outdated Show resolved Hide resolved
Copy link
Contributor

@nickva nickva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 after fixing the minor space after ; issue

@nickva
Copy link
Contributor

nickva commented May 23, 2023

I'll merge this PR to avoid it needing another rebase + CI run wait as I have another smaller PR pending if that merged before this.

@nickva nickva merged commit 3ff87fa into main May 23, 2023
@rnewson rnewson deleted the server-header-versions branch May 23, 2023 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants