Skip to content

Fix position of "filter" in directives - #1323

Merged
mholt merged 3 commits into
caddyserver:masterfrom
blaubaer:fix-filter-position-in-directives
Jan 3, 2017
Merged

mholt merged 3 commits into
caddyserver:masterfrom
blaubaer:fix-filter-position-in-directives

Conversation

@blaubaer

@blaubaer blaubaer commented Jan 3, 2017

Copy link
Copy Markdown

@mholt mholt left a comment

Copy link
Copy Markdown
Member

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!

Comment thread caddyhttp/httpserver/plugin.go Outdated
"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.

@mholt mholt Jan 3, 2017 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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

mholt commented Jan 3, 2017

Copy link
Copy Markdown
Member

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