-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix position of "filter" in directives #1323
Conversation
… bug of caddy-filter
There was a problem hiding this 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. |
There was a problem hiding this comment.
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!)
There was a problem hiding this comment.
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. :)
Great, thanks! |
...to fix #2 Replacement doesn't happen - of caddy-fitler.