-
Notifications
You must be signed in to change notification settings - Fork 425
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
Problems that occur when using --library okhttp4-gson configuration,version:3.0.50 #1206
Comments
Thanks @bai-xuan for filing this issue. I have a doubt about your solution. Wouldn't that code replace any interceptor added previously? |
An immutable list will definitely not take effect, and he even reported an error |
The code where the problem occurs:
|
Let me add one more thing, What I'm talking about is using --library okhttp4-gson This is the implementation in version 4.10.0: Specific code: |
The version I'm using is:3.0.50
Set debug mode, httpClient should not add Interceptor through httpClient.interceptors().add()
Because httpClient.interceptors() returns views that cannot be modified. The specific situation is as follows:
. My solution is:
The text was updated successfully, but these errors were encountered: