mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-03 22:33:28 +00:00
Implement brotli encoder; improve validation of other encoders
This commit is contained in:
parent
f93dab755b
commit
b8e7453fef
6 changed files with 87 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue