You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ssrazeen - I have come across the same. This impacts Android only, as it seems the header is being passed in iOS and is working correctly. Have you gotten around this somehow?
I think for the above to work this line must be added to the gradle file:
Hi,
The option gets the header, but it never used.
Could you please add the header implementation as picasso add header
OkHttpClient client = new OkHttpClient.Builder()
.addInterceptor(new Interceptor() {
@OverRide
public Response intercept(Chain chain) throws IOException {
Request newRequest = chain.request().newBuilder()
.addHeader("X-TOKEN", "VAL")
.build();
return chain.proceed(newRequest);
}
})
.build();
Picasso picasso = new Picasso.Builder(context)
.downloader(new OkHttp3Downloader(client))
.build();
The text was updated successfully, but these errors were encountered: