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