Browse Source

Fix RNFetchBlobBody#getRequestStream method name

Antoine Taillefer 6 years ago
parent
commit
dcd3aaa5eb
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java

+ 2
- 2
android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java View File

68
         try {
68
         try {
69
             switch (requestType) {
69
             switch (requestType) {
70
                 case SingleFile:
70
                 case SingleFile:
71
-                    requestStream = getReuqestStream();
71
+                    requestStream = getRequestStream();
72
                     contentLength = requestStream.available();
72
                     contentLength = requestStream.available();
73
                     break;
73
                     break;
74
                 case AsIs:
74
                 case AsIs:
135
         return true;
135
         return true;
136
     }
136
     }
137
 
137
 
138
-    private InputStream getReuqestStream() throws Exception {
138
+    private InputStream getRequestStream() throws Exception {
139
 
139
 
140
         // upload from storage
140
         // upload from storage
141
         if (rawBody.startsWith(RNFetchBlobConst.FILE_PREFIX)) {
141
         if (rawBody.startsWith(RNFetchBlobConst.FILE_PREFIX)) {