Body request gzip behaviour inconsistent between ios and android #22921
Labels
Bug
Platform: Android
Android applications.
Platform: iOS
iOS applications.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Environment
Description
When trying to gzip a request body (before a POST request), this behaviour is inconsistent across iOS and Android.
iOS: Manually gzip the body (in my case using pako) and add the
Content-Encoding: gzip
header.Android: Add the
Content-encoding: gzip
header and the underlying okHttp client (Android's built-in http client?) will do the gzipping for you it seems.*When react-native-debugger is open, manually gzipping the body is required too, but I guess this is because the requests go through Chrome's http client and not the device's http client?
Reproducible Demo
The text was updated successfully, but these errors were encountered: