1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00

fix: SASJS_WEBOUT_HEADERS path for windows

This commit is contained in:
2022-09-19 15:53:51 +05:00
parent a9c9b734f5
commit 0749d65173
3 changed files with 9 additions and 3 deletions

View File

@@ -27,7 +27,9 @@ const weboutPath = '${
const _SASJS_TOKENFILE = '${
isWindows() ? tokenFile.replace(/\\/g, '\\\\') : tokenFile
}';
const _SASJS_WEBOUT_HEADERS = '${headersPath}';
const _SASJS_WEBOUT_HEADERS = '${
isWindows() ? headersPath.replace(/\\/g, '\\\\') : headersPath
}';
const _SASJS_USERNAME = '${preProgramVariables?.username}';
const _SASJS_USERID = '${preProgramVariables?.userId}';
const _SASJS_DISPLAYNAME = '${preProgramVariables?.displayName}';

View File

@@ -23,7 +23,9 @@ _SASJS_SESSION_PATH = '${
isWindows() ? session.path.replace(/\\/g, '\\\\') : session.path
}';
_WEBOUT = '${isWindows() ? weboutPath.replace(/\\/g, '\\\\') : weboutPath}';
_SASJS_WEBOUT_HEADERS = '${headersPath}';
_SASJS_WEBOUT_HEADERS = '${
isWindows() ? headersPath.replace(/\\/g, '\\\\') : headersPath
}';
_SASJS_TOKENFILE = '${
isWindows() ? tokenFile.replace(/\\/g, '\\\\') : tokenFile
}';

View File

@@ -23,7 +23,9 @@ export const createRProgram = async (
isWindows() ? session.path.replace(/\\/g, '\\\\') : session.path
}';
._WEBOUT <- '${isWindows() ? weboutPath.replace(/\\/g, '\\\\') : weboutPath}';
._SASJS_WEBOUT_HEADERS <- '${headersPath}';
._SASJS_WEBOUT_HEADERS <- '${
isWindows() ? headersPath.replace(/\\/g, '\\\\') : headersPath
}';
._SASJS_TOKENFILE <- '${
isWindows() ? tokenFile.replace(/\\/g, '\\\\') : tokenFile
}';