retrofit + okhttp : Retrieve GZIPInputStream

后端 未结 4 1230
自闭症患者
自闭症患者 2021-02-19 19:33

I have a problem when i activate gzip on WS using retrofit 1.4.1 and okhttp 1.3.0.

RequestInterceptor requestInterceptor = new RequestInterceptor() {
                    


        
4条回答
  •  独厮守ぢ
    2021-02-19 19:41

    You need have to use Okhttp also made by square which supports grip. Don't know if you have create a custom instance or if it's enabled by default you should check the docs for that.

提交回复
热议问题