From d322de6b429e9f0bc589880b53373975dabcb997 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 1 Apr 2020 14:09:57 -0600 Subject: gzip: Use klauspost/gzip, an optimized gzip implementation --- modules/caddyhttp/encode/gzip/gzip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/caddyhttp/encode/gzip/gzip.go b/modules/caddyhttp/encode/gzip/gzip.go index 590f708..8215b3f 100644 --- a/modules/caddyhttp/encode/gzip/gzip.go +++ b/modules/caddyhttp/encode/gzip/gzip.go @@ -16,13 +16,13 @@ package caddygzip import ( "compress/flate" - "compress/gzip" // TODO: consider using https://github.com/klauspost/compress/gzip "fmt" "strconv" "github.com/caddyserver/caddy/v2" "github.com/caddyserver/caddy/v2/caddyconfig/caddyfile" "github.com/caddyserver/caddy/v2/modules/caddyhttp/encode" + "github.com/klauspost/compress/gzip" ) func init() { -- cgit v1.2.3