Fix sending multipart delta responses

Reviewed By: jeanlauliac

Differential Revision: D6328147

fbshipit-source-id: fcd16e64180a49bad0a0c606ab0f2bdd2d9ac0ee
This commit is contained in:
Rafael Oleza 2017-11-15 03:04:18 -08:00 committed by Facebook Github Bot
parent 56e790f958
commit c04393b397
1 changed files with 4 additions and 4 deletions

View File

@ -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,