-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Body request gzip behaviour inconsistent between ios and android #22921
Comments
Is the answer for this to add support for |
@robinclaes would you be able to send a Pull Request to align this behavior? |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
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: