From b89cbe18e2ebdd63e1a632bd58fb26d9391ecb5c Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 2 Nov 2016 08:13:28 -0600 Subject: [PATCH] Move header up above errors in directive order (fix #1183) --- caddyhttp/httpserver/plugin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caddyhttp/httpserver/plugin.go b/caddyhttp/httpserver/plugin.go index dcc57396..63e05f19 100644 --- a/caddyhttp/httpserver/plugin.go +++ b/caddyhttp/httpserver/plugin.go @@ -407,13 +407,13 @@ var directives = []string{ "rewrite", "ext", "gzip", + "header", "errors", "minify", // github.com/hacdias/caddy-minify "ipfilter", // github.com/pyed/ipfilter "ratelimit", // github.com/xuqingfeng/caddy-rate-limit "search", // github.com/pedronasser/caddy-search - "header", - "expires", // github.com/epicagency/caddy-expires + "expires", // github.com/epicagency/caddy-expires "basicauth", "redir", "status",