Made it support gzip and deflate encoding