transparently handle gzipped requests