client: be robust against servers/proxies returning compressed content

Change-Id: Id87c26a7d6e6d3f794a5421ece7cd344b10e1a8b