Extract gzip response.
Fix data length check.