React Native: disable multipart bundle transmission for now

Reviewed By: davidaurelio

Differential Revision: D5329011

fbshipit-source-id: 5093bc5b1858314512313934fba04f4343fe0d5b
This commit is contained in:
Jean Lauliac 2017-06-29 04:05:36 -07:00 committed by Facebook Github Bot
parent d666f30665
commit 33057aacbf
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ public class BundleDownloader {
final String bundleURL) { final String bundleURL) {
final Request request = new Request.Builder() final Request request = new Request.Builder()
.url(bundleURL) .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(); .build();
mDownloadBundleFromURLCall = Assertions.assertNotNull(mClient.newCall(request)); mDownloadBundleFromURLCall = Assertions.assertNotNull(mClient.newCall(request));
mDownloadBundleFromURLCall.enqueue(new Callback() { mDownloadBundleFromURLCall.enqueue(new Callback() {