summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMatt Holt <mholt@users.noreply.github.com>2019-06-10 10:21:25 -0600
committerGitHub <noreply@github.com>2019-06-10 10:21:25 -0600
commitf5b4f268dc73078467f19faf6068cc8047cabc7f (patch)
treebf44b5e31f83483c5f3e90762aa39452ec02f7d2 /cmd
parentef5f29cfb257c7503763a4b16947c4eb6a7864c3 (diff)
Implement encode middleware (#2)
* Implement encode middleware * Add missing break; and add missing JSON struct field tag
Diffstat (limited to 'cmd')
-rw-r--r--cmd/caddy2/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/caddy2/main.go b/cmd/caddy2/main.go
index d0289ec..9e1d47f 100644
--- a/cmd/caddy2/main.go
+++ b/cmd/caddy2/main.go
@@ -6,6 +6,8 @@ import (
// this is where modules get plugged in
_ "github.com/caddyserver/caddy2/modules/caddyhttp"
_ "github.com/caddyserver/caddy2/modules/caddyhttp/caddylog"
+ _ "github.com/caddyserver/caddy2/modules/caddyhttp/encode"
+ _ "github.com/caddyserver/caddy2/modules/caddyhttp/encode/gzip"
_ "github.com/caddyserver/caddy2/modules/caddyhttp/fileserver"
_ "github.com/caddyserver/caddy2/modules/caddyhttp/headers"
_ "github.com/caddyserver/caddy2/modules/caddyhttp/markdown"