From ae2cdad279674cd9248d58cfe1a9fcac626e860f Mon Sep 17 00:00:00 2001 From: jessyan Date: Wed, 15 Mar 2017 11:59:03 +0800 Subject: [PATCH] improve GlobeHttpHandler.EMPTY --- arms/src/main/java/com/jess/arms/http/GlobeHttpHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arms/src/main/java/com/jess/arms/http/GlobeHttpHandler.java b/arms/src/main/java/com/jess/arms/http/GlobeHttpHandler.java index d0686f57b..bc8a3f317 100644 --- a/arms/src/main/java/com/jess/arms/http/GlobeHttpHandler.java +++ b/arms/src/main/java/com/jess/arms/http/GlobeHttpHandler.java @@ -16,11 +16,13 @@ public interface GlobeHttpHandler { GlobeHttpHandler EMPTY = new GlobeHttpHandler() { @Override public Response onHttpResultResponse(String httpResult, Interceptor.Chain chain, Response response) { + //不管是否处理,都必须将response返回出去 return response; } @Override public Request onHttpRequestBefore(Interceptor.Chain chain, Request request) { + //不管是否处理,都必须将request返回出去 return request; } };