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 default response code #23

Merged

Conversation

bardocuteam
Copy link
Collaborator

@bardocuteam bardocuteam commented Oct 29, 2024

This PR adds a new parameter that allows the default response code to be set.

This role is used with routes and reverse proxies. When a user requests a non-existing route or "/," Caddy responds with code 200. This is not always the desired behavior.

Copy link
Collaborator

@tomcbe tomcbe left a comment

Choose a reason for hiding this comment

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

Looks goot to me. @cedricwider If you agree, could you merge the PR?

@cedricwider cedricwider merged commit 2fffb5f into simplificator:master Nov 4, 2024
13 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.

3 participants