Open lufo88 opened 7 years ago
Try remove the header and just set AutomaticDecompression. If you inspect the headers incoming on the server it should do compression/decompression transparently.
Try remove the header and just set AutomaticDecompression. If you inspect the headers incoming on the server it should do compression/decompression transparently.
I also try this way, but in the header of the request there is not the header of gzip (I check it in the code of the app).
I also check the response with the AutomaticDecompression set. The server return me content-lenght of the response if gzip is enable and another header:
Content-encoding "gzip"
If I set only AutomaticDecompression the response have not these headers.
This problem is only on Android, so maybe is a problem of okhttp.
Hi,
I use ModernHttpClient in a app. The app is in two version, iOS and Android. I can use the gzip header in the request (the server support it) In iOS modernhttpclient has no problem, but in Android the response is still compressed.
My code
I try to add
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate
to the handler but nothing changeAny idea?