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

Add a getter for Server.name #5531

Merged
merged 1 commit into from
May 11, 2023

Conversation

jjiang-stripe
Copy link
Contributor

Closes #5528

Does what it says on the tin! Given there's already a getter for Server I just went ahead with following that pseudo-convention rather than exporting, which also has the benefit of not having developers accidentally overwrite it in their custom middlewares.

@CLAassistant
Copy link

CLAassistant commented May 11, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

It's beautiful. Let's ship it! Thanks for the contribution. 😁

2.7 beta is hopefully being released soon, and this will be in it.

@mholt mholt merged commit cfc85ae into caddyserver:master May 11, 2023
@mholt mholt added this to the v2.7.0 milestone May 11, 2023
@mholt mholt added the feature ⚙️ New feature or request label May 11, 2023
@jjiang-stripe jjiang-stripe deleted the jjiang/server-name-getter branch May 11, 2023 16:48
mholt pushed a commit that referenced this pull request May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ⚙️ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export caddyhttp.Server name field
3 participants