Download ADOOR_ACE/node_modules/express-http-proxy/app/steps/sendUserRes.js from thisisAce/adoor-store: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/thisisAce/adoor-store/resolve/main/ADOOR_ACE/node_modules/express-http-proxy/app/steps/sendUserRes.js
- Command line
-
hf download hf://thisisAce/adoor-store/ADOOR_ACE/node_modules/express-http-proxy/app/steps/sendUserRes.js
-
curl -L -o sendUserRes.js https://huggingface.co/thisisAce/adoor-store/resolve/main/ADOOR_ACE/node_modules/express-http-proxy/app/steps/sendUserRes.js
328 Bytes
| ; | |
| 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; | |