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

fix: reqHeadrs.txt will contain headers to access APIs

This commit is contained in:
Saad Jutt
2022-05-08 02:49:16 +05:00
parent 25dc5dd215
commit 636301e664
7 changed files with 31 additions and 32 deletions

View File

@@ -75,12 +75,12 @@ export class ExecutionController {
const logPath = path.join(session.path, 'log.log')
const headersPath = path.join(session.path, 'stpsrv_header.txt')
const weboutPath = path.join(session.path, 'webout.txt')
const tokenFile = path.join(session.path, 'accessToken.txt')
const tokenFile = path.join(session.path, 'reqHeaders.txt')
await createFile(weboutPath, '')
await createFile(
tokenFile,
preProgramVariables?.accessToken ?? 'accessToken'
preProgramVariables?.httpHeaders.join('\n') ?? ''
)
const varStatments = Object.keys(vars).reduce(