File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/main/java/io/digdag/plugin/slack Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1313import okhttp3 .Call ;
1414import okhttp3 .FormBody ;
1515import okhttp3 .Interceptor ;
16- import okhttp3 .MediaType ;
1716import okhttp3 .OkHttpClient ;
1817import okhttp3 .Request ;
1918import okhttp3 .RequestBody ;
2019import okhttp3 .Response ;
21- import okhttp3 .ResponseBody ;
2220
2321import java .io .IOException ;
2422import java .util .Arrays ;
@@ -122,8 +120,7 @@ static class RetryInterceptor implements Interceptor
122120 public Response intercept (Chain chain ) throws IOException
123121 {
124122 Request request = chain .request ();
125- // Response response = chain.proceed(request);
126- Response response = new Response .Builder ().code (404 ).message ("not found" ).body (ResponseBody .create (MediaType .parse ("application/json; charset=utf-8" ), "{}" )).protocol (okhttp3 .Protocol .HTTP_1_1 ).request (request ).build ();
123+ Response response = chain .proceed (request );
127124 int retryCount = 0 ;
128125 while (!response .isSuccessful () && retryCount < MAX_RETRY_COUNT && Arrays .asList (retryHttpStatus ).contains (response .code ())) {
129126 retryCount ++;
You can’t perform that action at this time.
0 commit comments