Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit d31c414

Browse files
committed
Fix OkHttp3 unexpected end of stream error
reference square/okhttp#2738
1 parent 901e87b commit d31c414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public Response intercept(Chain chain) throws IOException {
332332
clientBuilder.retryOnConnectionFailure(false);
333333
clientBuilder.followRedirects(true);
334334

335-
OkHttpClient client = clientBuilder.build();
335+
OkHttpClient client = clientBuilder.retryOnConnectionFailure(true).build();
336336
Call call = client.newCall(req);
337337
taskTable.put(taskId, call);
338338
call.enqueue(new okhttp3.Callback() {

0 commit comments

Comments
 (0)