handle accept, deflate or gzip