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

Fix position of "filter" in directives #1323

Merged

Conversation

blaubaer
Copy link

@blaubaer blaubaer commented Jan 3, 2017

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.

Thank you for submitting the change!

@@ -410,6 +410,9 @@ var directives = []string{
"gzip",
"header",
"errors",
"filter", // github.com/echocat/caddy-filter - Required at this position because if it is
// enabled it captures the response of following
// middlewares and modifies it.
Copy link
Member

@mholt mholt Jan 3, 2017

Choose a reason for hiding this comment

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

We can probably lob off the explanation -- if we explained every directive, we'd have a bit of an unwieldy list. :) Keep the package path though. (Sorry, I know this absolute ordering isn't a great system, but it's the only correct way I can think of doing it!)

Copy link
Author

Choose a reason for hiding this comment

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

No problem. I just think it could be a good idea to left a hint for this strange thing - that not someones reorders this and we trap in new trouble. :)

@mholt mholt merged commit 8b9c9ef into caddyserver:master Jan 3, 2017
@mholt
Copy link
Member

mholt commented Jan 3, 2017

Great, thanks!

@blaubaer blaubaer deleted the fix-filter-position-in-directives branch January 3, 2017 16:03
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.

Replacement doesn't happen
2 participants