small fixes

This commit is contained in:
hzrd149 2024-10-04 12:17:30 -05:00
parent 048696f155
commit 78836cb752
2 changed files with 3 additions and 1 deletions

3
.vscode/launch.json vendored
View File

@ -26,7 +26,8 @@
"internalConsoleOptions": "openOnSessionStart", "internalConsoleOptions": "openOnSessionStart",
"outputCapture": "std", "outputCapture": "std",
"env": { "env": {
"DEBUG": "nsite,nsite:*" "DEBUG": "nsite,nsite:*",
"ENABLE_SCREENSHOTS": "true"
} }
} }
] ]

View File

@ -136,6 +136,7 @@ app.use(async (ctx, next) => {
// pass headers along // pass headers along
if (res.headers["content-length"]) ctx.set("content-length", res.headers["content-length"]); if (res.headers["content-length"]) ctx.set("content-length", res.headers["content-length"]);
if (res.headers["last-modified"]) ctx.set("last-modified", res.headers["last-modified"]);
ctx.status = 200; ctx.status = 200;
ctx.body = res; ctx.body = res;