From 7bbfa0efe3c50933cf9bdffc083cb5372908eb8e Mon Sep 17 00:00:00 2001 From: hu1095878620 <1095878620@qq.com> Date: Tue, 5 Mar 2019 17:14:03 +0800 Subject: [PATCH] Update BaseCachePolicy.java --- .../main/java/com/lzy/okgo/cache/policy/BaseCachePolicy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/okgo/src/main/java/com/lzy/okgo/cache/policy/BaseCachePolicy.java b/okgo/src/main/java/com/lzy/okgo/cache/policy/BaseCachePolicy.java index f43aad35..1d559e25 100644 --- a/okgo/src/main/java/com/lzy/okgo/cache/policy/BaseCachePolicy.java +++ b/okgo/src/main/java/com/lzy/okgo/cache/policy/BaseCachePolicy.java @@ -151,11 +151,11 @@ public void onResponse(okhttp3.Call call, okhttp3.Response response) throws IOEx int responseCode = response.code(); //network error - if (responseCode == 404 || responseCode >= 500) { + /*if (responseCode == 404 || responseCode >= 500) { Response error = Response.error(false, call, response, HttpException.NET_ERROR()); onError(error); return; - } + }*/ if (onAnalysisResponse(call, response)) return;