Skip to content

Conversation

@Sightem
Copy link
Contributor

@Sightem Sightem commented Apr 16, 2025

According to RFC 9110 Section 10.2.4, the Server header field in responses is optional (MAY be sent).

This change prevents automatically adding the 'Server' header if the application-wide server_name is configured to be an empty string via app.server_name("").

Addresses issue #1020

According to RFC 9110 Section 10.2.4, the Server header field
in responses is optional (MAY be sent).

This change modifies the connection logic to prevent automatically
adding the 'Server' header if the application-wide server_name
is configured to be an empty string via `app.server_name("")`.

Addresses issue CrowCpp#1020
@gittiver gittiver linked an issue Apr 16, 2025 that may be closed by this pull request
@gittiver gittiver merged commit 8f74a6a into CrowCpp:master Apr 16, 2025
10 of 11 checks passed
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.

Feature Request: Allow omitting the Server response header entirely

2 participants