Stack
Stack

Reputation: 1264

Does Okhttp GET request uses gzip as default?

I need to know whether the response of the GET request is compressed/decompressed using gzip or not?

Upvotes: 1

Views: 146

Answers (1)

Ashish Sharma
Ashish Sharma

Reputation: 416

OkHttp will do transparent gzip on response bodies unless you disable the feature with this Header:

Accept-Encoding: identity

Upvotes: 2

Related Questions