From 5c7bf1e4cf1791ed1d0a0d6f173e882d84f16819 Mon Sep 17 00:00:00 2001 From: Tom Thorogood Date: Wed, 21 Feb 2018 12:48:23 +1030 Subject: [PATCH] Clarify ForceGzip's relationship to other options --- gzip.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gzip.go b/gzip.go index 170cdce..5541240 100644 --- a/gzip.go +++ b/gzip.go @@ -480,6 +480,9 @@ func ContentTypes(types []string) Option { // // By default, responses are only gzipped if the request's // Accept-Encoding header indicates gzip support. +// +// Note: ForceGzip does not affect MinSize or ContentTypes, +// it simply ignores the Accept-Encoding header. var ForceGzip Option = forceGzip func forceGzip(c *config) {