File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
algoliasearch-apache/src/main/java/com/algolia/search Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 13
13
import java .util .concurrent .TimeoutException ;
14
14
import java .util .function .Consumer ;
15
15
import javax .annotation .Nonnull ;
16
- import javax .net .ssl .SSLException ;
17
16
import org .apache .http .*;
18
17
import org .apache .http .client .config .RequestConfig ;
19
18
import org .apache .http .client .entity .DeflateDecompressingEntity ;
@@ -82,7 +81,7 @@ public CompletableFuture<HttpResponse> performRequestAsync(HttpRequest request)
82
81
|| t .getCause () instanceof NoHttpResponseException ) {
83
82
return new HttpResponse (true );
84
83
} else if (t .getCause () instanceof HttpException
85
- || t .getCause () instanceof SSLException ) {
84
+ || t .getCause () instanceof IOException ) {
86
85
return new HttpResponse ().setNetworkError (true );
87
86
}
88
87
throw new AlgoliaRuntimeException (t );
You can’t perform that action at this time.
0 commit comments