瀏覽代碼

Fix RNFetchBlobBody#getRequestStream method name

Antoine Taillefer 6 年之前
父節點
當前提交
dcd3aaa5eb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java

+ 2
- 2
android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java 查看文件

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