Skip to content

Commit 56f0bcd

Browse files
authored
fix: resolve retry issue (#200)
1 parent 2394dbb commit 56f0bcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/doocs/im/util/HttpUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public Response intercept(Chain chain) throws IOException {
126126
}
127127
try {
128128
response = chain.proceed(request);
129-
if (response.isSuccessful()) {
129+
if (response.isSuccessful() && !shouldRetry(response)) {
130130
return response;
131131
}
132132
if (!shouldRetry(response)) {

0 commit comments

Comments
 (0)