mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-23 17:16:40 +01:00
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.
This commit is contained in:
parent
1bbad72ff1
commit
1dd413bd69
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue