From 97d08eaaff3513678a2eb7c9cb5aa150db5daa61 Mon Sep 17 00:00:00 2001 From: h4h13 Date: Thu, 16 May 2019 23:35:08 +0530 Subject: [PATCH] Fix crashing on artist list --- .../java/code/name/monkey/retromusic/rest/LastFMRestClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/rest/LastFMRestClient.java b/app/src/main/java/code/name/monkey/retromusic/rest/LastFMRestClient.java index 5d00ecba..c6afb36c 100644 --- a/app/src/main/java/code/name/monkey/retromusic/rest/LastFMRestClient.java +++ b/app/src/main/java/code/name/monkey/retromusic/rest/LastFMRestClient.java @@ -66,7 +66,7 @@ public class LastFMRestClient { private static Interceptor createCacheControlInterceptor() { return chain -> { 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(); return chain.proceed(modifiedRequest); };