mirror of https://github.com/status-im/metro.git
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,
|
||||
});
|
||||
} catch (error) {
|
||||
this._handleError(res, this._optionsHash(options), error);
|
||||
this._handleError(mres, this._optionsHash(options), error);
|
||||
|
||||
this._reporter.update({
|
||||
buildID,
|
||||
|
@ -545,9 +545,9 @@ class Server {
|
|||
return;
|
||||
}
|
||||
|
||||
res.setHeader('Content-Type', 'application/javascript');
|
||||
res.setHeader('Content-Length', String(Buffer.byteLength(output.bundle)));
|
||||
res.end(output.bundle);
|
||||
mres.setHeader('Content-Type', 'application/javascript');
|
||||
mres.setHeader('Content-Length', String(Buffer.byteLength(output.bundle)));
|
||||
mres.end(output.bundle);
|
||||
|
||||
this._reporter.update({
|
||||
buildID,
|
||||
|
|
Loading…
Reference in New Issue