Fix crashing on artist list

This commit is contained in:
h4h13 2019-05-16 23:35:08 +05:30
parent 95ac5bdd97
commit 97d08eaaff

View file

@ -66,7 +66,7 @@ public class LastFMRestClient {
private static Interceptor createCacheControlInterceptor() { private static Interceptor createCacheControlInterceptor() {
return chain -> { return chain -> {
Request modifiedRequest = chain.request().newBuilder() Request modifiedRequest = chain.request().newBuilder()
.addHeader("Cache-Control", String.format("max-age=31536000, max-stale=31536000")) .addHeader("Cache-Control", "max-age=31536000, max-stale=31536000")
.build(); .build();
return chain.proceed(modifiedRequest); return chain.proceed(modifiedRequest);
}; };