added support for gzip compression for text mime types