From b8e7453fef3dac6036403bc384eec96becff5114 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 13 Jun 2019 11:20:43 -0600 Subject: Implement brotli encoder; improve validation of other encoders --- modules/caddyhttp/encode/zstd/zstd.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/caddyhttp/encode/zstd') diff --git a/modules/caddyhttp/encode/zstd/zstd.go b/modules/caddyhttp/encode/zstd/zstd.go index 6afe53e..eb66ad8 100644 --- a/modules/caddyhttp/encode/zstd/zstd.go +++ b/modules/caddyhttp/encode/zstd/zstd.go @@ -1,4 +1,4 @@ -package caddystd +package caddyzstd import ( "github.com/caddyserver/caddy2" @@ -21,3 +21,6 @@ func (z Zstd) NewEncoder() encode.Encoder { writer, _ := zstd.NewWriter(nil) return writer } + +// Interface guard +var _ encode.Encoding = (*Zstd)(nil) -- cgit v1.2.3