`env[:response_headers]['content-encoding']` will work here. `fetch` is for setting defaults.