0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-13 22:51:08 -05:00

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
"log",
"rewrite",
"ext",
"gzip",
"locale", // github.com/simia-tech/caddy-locale
"errors",
@ -350,10 +352,8 @@ var directives = []string{
"ipfilter", // github.com/pyed/ipfilter
"search", // github.com/pedronasser/caddy-search
"header",
"cors", // github.com/captncraig/cors/caddy
"rewrite",
"redir",
"ext",
"cors", // github.com/captncraig/cors/caddy
"mime",
"basicauth",
"jwt", // github.com/BTBurke/caddy-jwt