react-native/ReactAndroid
Janic Duplessis a6f47d46ca 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: https://github.com/facebook/react-native/pull/21187

Differential Revision: D9978889

Pulled By: hramos

fbshipit-source-id: b86791fb7d3157f325a0904225d2f63d166080d5
2018-09-20 15:07:02 -07:00
..
libs Bump Android Support Library to 27.1.1 (#20586) 2018-08-20 18:08:52 -07:00
src Decode gzip body if not handled by okhttp (#21187) 2018-09-20 15:07:02 -07:00
.npmignore
DevExperience.md
README.md Fixing link to Android build guide. 2018-05-27 15:17:55 -07:00
build.gradle Use Android SDK 27 in React Native 2018-09-20 07:56:23 -07:00
gradle.properties Consolidate native dependencies versions (#20742) 2018-09-13 15:49:00 -07:00
proguard-rules.pro Remove TextLayoutBuilder from ReactAndroid dependency (#20600) 2018-08-22 13:48:53 -07:00
release.gradle Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00

README.md

Building React Native for Android

See the docs on the website.

Running tests

When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.