Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decode gzip body if not handled by okhttp (#21187)
Summary: When looking at enabling gzip content encoding on Android I stumbled on this old issue where the body content is not decoded. It happens because okhttp only handles gzip decoding if the user does NOT provide an accept-encoding header. This is pretty confusing because on iOS we need to pass the header manually if we want to receive a gzipped response. I think it makes sense to handle the decoding no matter what. See the comment in code for more details. Fixed #5297 Pull Request resolved: #21187 Differential Revision: D9978889 Pulled By: hramos fbshipit-source-id: b86791fb7d3157f325a0904225d2f63d166080d5
- Loading branch information