Selaa lähdekoodia

Fix RNFetchBlobBody#getRequestStream method name

Antoine Taillefer 7 vuotta sitten
vanhempi
commit
dcd3aaa5eb

+ 2
- 2
android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java Näytä tiedosto

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)) {