mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-04 14:58:47 +00:00
Fix encoder name bug; remove unused field in encode middleware struct
This commit is contained in:
parent
d5ae3a4966
commit
fee0b38b48
4 changed files with 31 additions and 21 deletions
|
|
@ -16,6 +16,10 @@ func init() {
|
|||
// Zstd can create zstd encoders.
|
||||
type Zstd struct{}
|
||||
|
||||
// AcceptEncoding returns the name of the encoding as
|
||||
// used in the Accept-Encoding request headers.
|
||||
func (Zstd) AcceptEncoding() string { return "zstd" }
|
||||
|
||||
// NewEncoder returns a new gzip writer.
|
||||
func (z Zstd) NewEncoder() encode.Encoder {
|
||||
writer, _ := zstd.NewWriter(nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue