mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
React Native: disable multipart bundle transmission for now
Reviewed By: davidaurelio Differential Revision: D5329011 fbshipit-source-id: 5093bc5b1858314512313934fba04f4343fe0d5b
This commit is contained in:
1 parent
d666f30665
commit
33057aacbf
1 file changed
+4
-1
@@ -51,7 +51,10 @@ public class BundleDownloader {
|
||||
final String bundleURL) {
|
||||
final Request request = new Request.Builder()
|
||||
.url(bundleURL)
|
||||
.addHeader("Accept", "multipart/mixed")
|
||||
// FIXME: there is a bug that makes MultipartStreamReader to never find the end of the
|
||||
// multipart message. This temporarily disables the multipart mode to work around it, but
|
||||
// it means there is no progress bar displayed in the React Native overlay anymore.
|
||||
//.addHeader("Accept", "multipart/mixed")
|
||||
.build();
|
||||
mDownloadBundleFromURLCall = Assertions.assertNotNull(mClient.newCall(request));
|
||||
mDownloadBundleFromURLCall.enqueue(new Callback() {
|
||||
|
||||
Reference in new issue
Block a user