From 78836cb7525401ff62225bd6e3c1170489faa946 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Fri, 4 Oct 2024 12:17:30 -0500 Subject: [PATCH] small fixes --- .vscode/launch.json | 3 ++- src/index.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 4f2970d..ad2fe8d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -26,7 +26,8 @@ "internalConsoleOptions": "openOnSessionStart", "outputCapture": "std", "env": { - "DEBUG": "nsite,nsite:*" + "DEBUG": "nsite,nsite:*", + "ENABLE_SCREENSHOTS": "true" } } ] diff --git a/src/index.ts b/src/index.ts index 66e171f..9b7b6c2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -136,6 +136,7 @@ app.use(async (ctx, next) => { // pass headers along 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.body = res;