Browse Source

Add comments

Ben Hsieh 8 years ago
parent
commit
90982bd3b3

+ 1
- 0
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java View File

@@ -283,6 +283,7 @@ public class RNFetchBlobReq extends BroadcastReceiver implements Runnable {
283 283
 
284 284
             final Request req = builder.build();
285 285
 
286
+            // intercept network redirections
286 287
             clientBuilder.addNetworkInterceptor(new Interceptor() {
287 288
                 @Override
288 289
                 public Response intercept(Chain chain) throws IOException {

+ 1
- 1
src/polyfill/File.js View File

@@ -9,7 +9,7 @@ export default class File extends Blob {
9 9
 
10 10
   name : string = '';
11 11
 
12
-  static build(name:string, data:any, cType):Promise<File> {
12
+  static build(name:string, data:any, cType:string):Promise<File> {
13 13
     return new Promise((resolve, reject) => {
14 14
       new File(data, cType).onCreated((f) => {
15 15
         f.name = name