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

Commit e1f028d

Browse files
committed
Add missing response type to cache response
1 parent cda9a6f commit e1f028d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
@@ -165,7 +165,7 @@ public void run() {
165165
File file = new File(RNFetchBlobFS.getTmpPath(RNFetchBlob.RCTContext, cacheKey) + ext);
166166

167167
if (file.exists()) {
168-
callback.invoke(null, file.getAbsolutePath());
168+
callback.invoke(null, RNFetchBlobConst.RNFB_RESPONSE_PATH, file.getAbsolutePath());
169169
return;
170170
}
171171
}

src/ios/RNFetchBlobNetwork.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ - (void) sendRequest:(__weak NSDictionary * _Nullable )options
156156

157157
destPath = [RNFetchBlobFS getTempPath:cacheKey withExtension:[self.options valueForKey:CONFIG_FILE_EXT]];
158158
if ([[NSFileManager defaultManager] fileExistsAtPath:destPath]) {
159-
callback(@[[NSNull null], destPath]);
159+
callback(@[[NSNull null], RESP_TYPE_PATH, destPath]);
160160
return;
161161
}
162162
}

0 commit comments

Comments
 (0)