didi / DoKit

一款面向泛前端产品研发全生命周期的效率平台。
Apache License 2.0
20.2k stars 3.11k forks source link

解决和HttpLoggingInterceptor冲突问题 #1081

Open ghbhaha opened 2 years ago

ghbhaha commented 2 years ago

HttpLoggingInterceptor打印body调用requestBody.writeTo(buffer) 时 mBufferedSink 已经被close,真实请求时就会报 [DokitCapInterceptor]: e===>closed

ghbhaha commented 2 years ago

不太理解原先此处判空原因,既然已经close掉 还能被复用么