1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-04 21:30:05 +00:00

fix: update the content type header after the program has been executed

This commit is contained in:
2022-11-28 23:53:36 +05:00
parent 4ffc1ec6a9
commit 4dcee4b3c3
2 changed files with 6 additions and 5 deletions

View File

@@ -94,7 +94,7 @@ export class SASSessionController extends SessionController {
}
const headersPath = path.join(session.path, 'stpsrv_header.txt')
await createFile(headersPath, 'content-type: text/html; charset=utf-8')
await createFile(headersPath, 'content-type: text/html; charset=utf-8\n')
// we do not want to leave sessions running forever
// we clean them up after a predefined period, if unused