Skip to content
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

Android - response.bodyString() comes back in binary instead of ascii text #145

Closed
hey68you opened this issue Jan 13, 2022 · 1 comment
Closed

Comments

@hey68you
Copy link

Am I doing something wrong here? maybe not setting something wrong in the headers ?
Note: the request works find on iOS

Screen Shot 2022-01-13 at 6 40 18 PM

@hey68you
Copy link
Author

I figured out my problem (see: https://stackoverflow.com/questions/33889840/retrofit-and-okhttp-gzip-decode/33893542)

I was adding request header like this - "Accept-Encoding: gzip, deflate",
When Okhttp sees this header, it will not decompress (expecting calling client to do it's own decompression)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant