gzip query result

gzip query result when calling client specifies "accept=application/gzip" in header.