From 065eeb42c3511a2002abbb1c91fc04cf828f1778 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 6 Jul 2016 00:04:39 -0600 Subject: [PATCH] Move rewrite and ext middlewares to before gzip (fixes #914) --- caddyhttp/httpserver/plugin.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/caddyhttp/httpserver/plugin.go b/caddyhttp/httpserver/plugin.go index 9d2340672..61f46de62 100644 --- a/caddyhttp/httpserver/plugin.go +++ b/caddyhttp/httpserver/plugin.go @@ -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