From 33057aacbf5ff6cd4d0e44eeddf9c328574883b4 Mon Sep 17 00:00:00 2001 From: Jean Lauliac Date: Thu, 29 Jun 2017 04:05:36 -0700 Subject: [PATCH] React Native: disable multipart bundle transmission for now Reviewed By: davidaurelio Differential Revision: D5329011 fbshipit-source-id: 5093bc5b1858314512313934fba04f4343fe0d5b --- .../java/com/facebook/react/devsupport/BundleDownloader.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java index d69db4e2c..bb82d25b4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java @@ -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() {