mirror of
https://github.com/LukeHagar/firecamp.git
synced 2025-12-06 04:19:43 +00:00
fix: the auth header issue has been solved
This commit is contained in:
@@ -147,12 +147,16 @@ const createExecutionSlice: TStoreSlice<IExecutionSlice> = (set, get) => ({
|
|||||||
},
|
},
|
||||||
|
|
||||||
prepareRequestForExecution: () => {
|
prepareRequestForExecution: () => {
|
||||||
const { request, prepareAuthForExecution, prepareScriptsForExecution } =
|
const {
|
||||||
get();
|
request,
|
||||||
|
runtime: { authHeaders = [] },
|
||||||
|
prepareAuthForExecution,
|
||||||
|
prepareScriptsForExecution,
|
||||||
|
} = get();
|
||||||
const auth = prepareAuthForExecution();
|
const auth = prepareAuthForExecution();
|
||||||
const { preScripts, postScripts } = prepareScriptsForExecution();
|
const { preScripts, postScripts } = prepareScriptsForExecution();
|
||||||
return {
|
return {
|
||||||
...request,
|
...{ ...request, headers: [...request.headers, ...authHeaders] }, // merge auth headers to main headers
|
||||||
auth,
|
auth,
|
||||||
preScripts,
|
preScripts,
|
||||||
postScripts,
|
postScripts,
|
||||||
|
|||||||
Reference in New Issue
Block a user