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: () => {
|
||||
const { request, prepareAuthForExecution, prepareScriptsForExecution } =
|
||||
get();
|
||||
const {
|
||||
request,
|
||||
runtime: { authHeaders = [] },
|
||||
prepareAuthForExecution,
|
||||
prepareScriptsForExecution,
|
||||
} = get();
|
||||
const auth = prepareAuthForExecution();
|
||||
const { preScripts, postScripts } = prepareScriptsForExecution();
|
||||
return {
|
||||
...request,
|
||||
...{ ...request, headers: [...request.headers, ...authHeaders] }, // merge auth headers to main headers
|
||||
auth,
|
||||
preScripts,
|
||||
postScripts,
|
||||
|
||||
Reference in New Issue
Block a user