Initial import from local backup (Documents-Playground/pakerpale)

This commit is contained in:
jeonghwa
2026-07-03 05:27:31 +09:00
commit 3a8de01ba0
1794 changed files with 137027 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
'use strict';
function copyProxyResHeadersToUserRes(container) {
return new Promise(function(resolve) {
var res = container.user.res;
var rsp = container.proxy.res;
if (!res.headersSent) {
res.status(rsp.statusCode);
Object.keys(rsp.headers)
.filter(function(item) { return item !== 'transfer-encoding'; })
.forEach(function(item) {
res.set(item, rsp.headers[item]);
});
}
resolve(container);
});
}
module.exports = copyProxyResHeadersToUserRes;