File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
android/src/main/java/com/ReactNativeBlobUtil/Response Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,19 @@ public MediaType contentType() {
72
72
73
73
@ Override
74
74
public long contentLength () {
75
- if (originalBody .contentLength () > Integer .MAX_VALUE ) {
75
+
76
+ /**
77
+ *
78
+ * Okio buffer issue in current version seems to be fixed in the latest versions
79
+ *
80
+ * limiting this was causing the download progress to stop at 2GB size but files still was downloading
81
+ *
82
+ */
83
+
84
+ // if (originalBody.contentLength() > Integer.MAX_VALUE) {
76
85
// This is a workaround for a bug Okio buffer where it can't handle larger than int.
77
- return Integer .MAX_VALUE ;
78
- }
86
+ // return Integer.MAX_VALUE;
87
+ // }
79
88
return originalBody .contentLength ();
80
89
}
81
90
You can’t perform that action at this time.
0 commit comments