Update LastFMRestClient.java file and fix a bug

The integers in some of the languages is not match by android studio for example in Persian language integers is not international and android studio can not identify these integers.
This commit is contained in:
Matin Soleimani 2019-04-21 12:58:27 +04:30 committed by GitHub
parent b0605ff183
commit 591ecfa6a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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=%d, max-stale=%d", 31536000, 31536000)) .addHeader("Cache-Control", String.format("max-age=31536000, max-stale=31536000"))
.build(); .build();
return chain.proceed(modifiedRequest); return chain.proceed(modifiedRequest);
}; };