snapframework / snap-core

Core type definitions (Snap monad, HTTP types, etc) and utilities for web handlers.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
317 stars 85 forks source link

Export compressibleMimeTypes from Snap.Util.Gzip #250

Closed cimmanon closed 7 years ago

cimmanon commented 8 years ago

I would like to add SVGs and ICOs to the list of file types compressed with gzip, but there doesn't appear to be a convenient way to do this. It looks like I should be able to do this by using withCompression' and passing in a Set of mime types, but compressibleMimeTypes is not exposed by the module so I end up having to repeat information that already exists.

gregorycollins commented 7 years ago

This is exported from Snap.Util.GZip now.