Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
sxci committed Nov 13, 2020
1 parent ecc295f commit 002bf03
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/java/com/qiniu/http/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,8 @@ public okhttp3.Response intercept(Chain chain) throws IOException {
try {
response = chain.proceed(request);
} catch (IOException e) {
if (e instanceof java.net.ConnectException) {
ex = e;
} else {
IpTag tag = (IpTag) request.tag();
ex = new IOException(e + " on " + tag.ip, e);
}
IpTag tag = (IpTag) request.tag();
ex = new IOException(e + " on " + tag.ip, e);
}
if (ex != null) {
throw ex;
Expand Down

0 comments on commit 002bf03

Please sign in to comment.