Commit 1dd413bd authored by Philipp Brüll's avatar Philipp Brüll Committed by GitHub

Change position of locale directive

First, great job on the 0.9 release! It seems caddy's path lead into a bright future. Thanks also for including the locale plugin.

Trying it, I've figured out, that there might be a problem with the order of the directives. In the typical use case, the result of the locale detection might be used in the `rewrite` and `log` plugin. If I'm not mistaken, it makes sense to put the `locale` directive before those.
parent 1bbad72f
......@@ -342,11 +342,11 @@ var directives = []string{
"git", // github.com/abiosoft/caddy-git
// directives that add middleware to the stack
"locale", // github.com/simia-tech/caddy-locale
"log",
"rewrite",
"ext",
"gzip",
"locale", // github.com/simia-tech/caddy-locale
"errors",
"minify", // github.com/hacdias/caddy-minify
"ipfilter", // github.com/pyed/ipfilter
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment