mirror of
https://github.com/status-im/metro.git
synced 2025-03-02 03:30:53 +00:00
Fix sending multipart delta responses
Reviewed By: jeanlauliac Differential Revision: D6328147 fbshipit-source-id: fcd16e64180a49bad0a0c606ab0f2bdd2d9ac0ee
This commit is contained in:
parent
56e790f958
commit
c04393b397
@ -535,7 +535,7 @@ class Server {
|
|||||||
deltaBundleId: options.deltaBundleId,
|
deltaBundleId: options.deltaBundleId,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this._handleError(res, this._optionsHash(options), error);
|
this._handleError(mres, this._optionsHash(options), error);
|
||||||
|
|
||||||
this._reporter.update({
|
this._reporter.update({
|
||||||
buildID,
|
buildID,
|
||||||
@ -545,9 +545,9 @@ class Server {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
res.setHeader('Content-Type', 'application/javascript');
|
mres.setHeader('Content-Type', 'application/javascript');
|
||||||
res.setHeader('Content-Length', String(Buffer.byteLength(output.bundle)));
|
mres.setHeader('Content-Length', String(Buffer.byteLength(output.bundle)));
|
||||||
res.end(output.bundle);
|
mres.end(output.bundle);
|
||||||
|
|
||||||
this._reporter.update({
|
this._reporter.update({
|
||||||
buildID,
|
buildID,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user