We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.0.0-RC1 This chunk of code is throwing exception. So i found it out when migrating to okhttp3.
client.interceptors().add(new Interceptor() { @Override public okhttp3.Response intercept(Chain chain) throws IOException { Request request = chain.request(); Request.Builder requestBuilder = request.newBuilder() .addHeader("Authorization", authPrefs.getString(Properties.ApiProperties.TOKEN, "null")) .method(request.method(), request.body()); request = requestBuilder.build(); return chain.proceed(request); } });
Version 2.7.0 works fine for me.
The text was updated successfully, but these errors were encountered:
This part of OkHttp is now immutable, please use OkHttpClient.Builder and add interceptor when you create OkHttpClient instance.
Something like this:
new OkHttpClient.Builder().addInterceptor(...).build()
On Sat, Jan 9, 2016, 14:19 outofdate [email protected] wrote:
300-RC1 This chunk of code is throwing exception So i found it out when migrating to okhttp3 clientinterceptors()add(new Interceptor() { @OverRide public okhttp3Response intercept(Chain chain) throws IOException { Request request = chainrequest(); RequestBuilder requestBuilder = requestnewBuilder() addHeader("Authorization", authPrefsgetString(PropertiesApiPropertiesTOKEN, "null")) method(requestmethod(), requestbody()); request = requestBuilderbuild(); return chainproceed(request); } }); Version 270 works fine for me — Reply to this email directly or view it on GitHub #2219.
300-RC1 This chunk of code is throwing exception So i found it out when migrating to okhttp3
clientinterceptors()add(new Interceptor() { @OverRide public okhttp3Response intercept(Chain chain) throws IOException { Request request = chainrequest(); RequestBuilder requestBuilder = requestnewBuilder() addHeader("Authorization", authPrefsgetString(PropertiesApiPropertiesTOKEN, "null")) method(requestmethod(), requestbody());
request = requestBuilderbuild(); return chainproceed(request); } });
Version 270 works fine for me
— Reply to this email directly or view it on GitHub #2219.
@artem_zin
Sorry, something went wrong.
No branches or pull requests
3.0.0-RC1
This chunk of code is throwing exception.
So i found it out when migrating to okhttp3.
Version 2.7.0 works fine for me.
The text was updated successfully, but these errors were encountered: