fix: update the response header of request to stp/execute routes

This commit is contained in:
2022-11-27 21:57:26 +05:00
parent 6b666d5554
commit 112431a1b7
3 changed files with 9 additions and 2 deletions
@@ -78,6 +78,11 @@ export class ExecutionController {
const logPath = path.join(session.path, 'log.log')
const headersPath = path.join(session.path, 'stpsrv_header.txt')
if (isDebugOn(vars)) {
await createFile(headersPath, 'content-type: text/plain')
}
const weboutPath = path.join(session.path, 'webout.txt')
const tokenFile = path.join(session.path, 'reqHeaders.txt')