diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-06-13 11:20:43 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-06-13 11:20:43 -0600 |
commit | b8e7453fef3dac6036403bc384eec96becff5114 (patch) | |
tree | c9911fdbfd5efa6957588e192dce512603472e1a /modules/caddyhttp/encode/zstd | |
parent | f93dab755baa7d93b1b9a86a78d9ded848b492ba (diff) |
Implement brotli encoder; improve validation of other encoders
Diffstat (limited to 'modules/caddyhttp/encode/zstd')
-rw-r--r-- | modules/caddyhttp/encode/zstd/zstd.go | 5 |
1 files changed, 4 insertions, 1 deletions
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) |