diff --git a/library/src/main/java/me/proxer/library/api/LoginTokenInterceptor.java b/library/src/main/java/me/proxer/library/api/LoginTokenInterceptor.java index 4db3282f..377aab1f 100644 --- a/library/src/main/java/me/proxer/library/api/LoginTokenInterceptor.java +++ b/library/src/main/java/me/proxer/library/api/LoginTokenInterceptor.java @@ -48,7 +48,7 @@ final class LoginTokenInterceptor implements Interceptor { public Response intercept(final Chain chain) throws IOException { final Request oldRequest = chain.request(); - if (oldRequest.url().host().equals(ProxerUrls.apiBase().host())) { + if (ProxerUrls.hasProxerHost(oldRequest.url())) { final Request.Builder newRequestBuilder = oldRequest.newBuilder(); final String loginToken = loginTokenManager.provide();