mirror of
https://github.com/hzrd149/nsite-gateway.git
synced 2025-06-23 20:05:03 +00:00
small fixes
This commit is contained in:
parent
048696f155
commit
78836cb752
3
.vscode/launch.json
vendored
3
.vscode/launch.json
vendored
@ -26,7 +26,8 @@
|
|||||||
"internalConsoleOptions": "openOnSessionStart",
|
"internalConsoleOptions": "openOnSessionStart",
|
||||||
"outputCapture": "std",
|
"outputCapture": "std",
|
||||||
"env": {
|
"env": {
|
||||||
"DEBUG": "nsite,nsite:*"
|
"DEBUG": "nsite,nsite:*",
|
||||||
|
"ENABLE_SCREENSHOTS": "true"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user