File size: 328 Bytes
befd7da |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
'use strict';
function sendUserRes(Container) {
if (!Container.user.res.headersSent) {
if (Container.options.stream) {
Container.proxy.res.pipe(Container.user.res);
} else {
Container.user.res.send(Container.proxy.resData);
}
}
return Promise.resolve(Container);
}
module.exports = sendUserRes;
|