Move rewrite and ext middlewares to before gzip (fixes #914)

This commit is contained in:
Matthew Holt 2016-07-06 00:04:39 -06:00
parent d4b10b69a7
commit 065eeb42c3

View file

@ -343,6 +343,8 @@ var directives = []string{
// directives that add middleware to the stack // directives that add middleware to the stack
"log", "log",
"rewrite",
"ext",
"gzip", "gzip",
"locale", // github.com/simia-tech/caddy-locale "locale", // github.com/simia-tech/caddy-locale
"errors", "errors",
@ -350,10 +352,8 @@ var directives = []string{
"ipfilter", // github.com/pyed/ipfilter "ipfilter", // github.com/pyed/ipfilter
"search", // github.com/pedronasser/caddy-search "search", // github.com/pedronasser/caddy-search
"header", "header",
"cors", // github.com/captncraig/cors/caddy
"rewrite",
"redir", "redir",
"ext", "cors", // github.com/captncraig/cors/caddy
"mime", "mime",
"basicauth", "basicauth",
"jwt", // github.com/BTBurke/caddy-jwt "jwt", // github.com/BTBurke/caddy-jwt