Skip to content

Commit

Permalink
fix bug for net
Browse files Browse the repository at this point in the history
  • Loading branch information
limedroid committed Jul 4, 2017
1 parent 8847c93 commit 3855097
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
public interface RequestHandler {
Request onBeforeRequest(Request request, Interceptor.Chain chain);

Response onAfterRequest(Response response, String result, Interceptor.Chain chain);
Response onAfterRequest(Response response, Interceptor.Chain chain);
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ public Response intercept(Chain chain) throws IOException {
}
Response response = chain.proceed(request);
if (handler != null) {
response = handler.onAfterRequest(response, response.body().string(), chain);
Response tmp = handler.onAfterRequest(response, chain);
if (tmp != null) {
return tmp;
}

}
return response;
}
Expand Down

0 comments on commit 3855097

Please sign in to comment.