mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
16 lines
328 B
JavaScript
Executable File
16 lines
328 B
JavaScript
Executable File
'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;
|