nytimes / gziphandler

Go middleware to gzip HTTP responses
https://godoc.org/github.com/NYTimes/gziphandler
Apache License 2.0
868 stars 129 forks source link

export acceptsGzip? #48

Closed jmackie closed 7 years ago

jmackie commented 7 years ago

Is there any particular reason for not exporting the acceptsGzip function?

I'm running a static file handler that serves pre-gzipped files, and it would be really useful to have access to the logic of this function for that use case.

More of a suggestion than an issue, apologies.

Great package btw! :+1:

adammck commented 7 years ago

I have no problem with this, but there's a more complete implementation in gddo which you might find useful. I've been meaning to switch to this some time, but I haven't received any complaints about our implementation, so haven't gotten around to it.

adammck commented 7 years ago

See also #34.