React Native: disable multipart bundle transmission for now
Reviewed By: davidaurelio Differential Revision: D5329011 fbshipit-source-id: 5093bc5b1858314512313934fba04f4343fe0d5b
This commit is contained in:
parent
d666f30665
commit
33057aacbf
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue