1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-09 07:20:05 +00:00

fix: add a new variable _SASJS_WEBOUT_HEADERS to code.js and code.py

This commit is contained in:
2022-08-18 01:19:47 +05:00
parent 8780b800a3
commit 882bedd5d5
5 changed files with 18 additions and 7 deletions

View File

@@ -89,6 +89,8 @@ export class ExecutionController {
tokenFile,
preProgramVariables?.httpHeaders.join('\n') ?? ''
)
if (returnJson)
await createFile(headersPath, 'Content-type: application/json')
await processProgram(
program,
@@ -96,6 +98,7 @@ export class ExecutionController {
vars,
session,
weboutPath,
headersPath,
tokenFile,
runTime,
logPath,