Skip to content

Commit

Permalink
Clarify ForceGzip's relationship to other options
Browse files Browse the repository at this point in the history
  • Loading branch information
tmthrgd committed Feb 21, 2018
1 parent 14e0d16 commit 5c7bf1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5c7bf1e

Please sign in to comment.