mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-23 07:09:01 +01:00
feat(#306): bru cli support for allowScriptFilesystemAccess
This commit is contained in:
parent
5a89d12716
commit
0f3a8a87bb
@ -29,6 +29,8 @@ const runSingleRequest = async function (
|
||||
|
||||
request = prepareRequest(bruJson.request);
|
||||
|
||||
const allowScriptFilesystemAccess = get(brunoConfig, 'filesystemAccess.allow', false);
|
||||
|
||||
// make axios work in node using form data
|
||||
// reference: https://github.com/axios/axios/issues/1006#issuecomment-320165427
|
||||
if (request.headers && request.headers['content-type'] === 'multipart/form-data') {
|
||||
@ -65,7 +67,8 @@ const runSingleRequest = async function (
|
||||
collectionVariables,
|
||||
collectionPath,
|
||||
null,
|
||||
processEnvVars
|
||||
processEnvVars,
|
||||
allowScriptFilesystemAccess
|
||||
);
|
||||
}
|
||||
|
||||
@ -206,7 +209,8 @@ const runSingleRequest = async function (
|
||||
collectionVariables,
|
||||
collectionPath,
|
||||
null,
|
||||
processEnvVars
|
||||
processEnvVars,
|
||||
allowScriptFilesystemAccess
|
||||
);
|
||||
}
|
||||
|
||||
@ -247,7 +251,8 @@ const runSingleRequest = async function (
|
||||
collectionVariables,
|
||||
collectionPath,
|
||||
null,
|
||||
processEnvVars
|
||||
processEnvVars,
|
||||
allowScriptFilesystemAccess
|
||||
);
|
||||
testResults = get(result, 'results', []);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user