Skip to content

Commit

Permalink
Merge pull request #10 from hardfury-labs/main
Browse files Browse the repository at this point in the history
  • Loading branch information
cuibonobo committed Dec 22, 2023
2 parents 4bd2d49 + 84bba0c commit e3fb7bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ async function getResponse(
return createError("Network Error", config, "ERR_NETWORK", request);
}

const headers: any = Object.assign({}, stageOne.headers as unknown);
const stageOneHeaders: Record<string, string> = {};
stageOne.headers.forEach((value, key) => {
stageOneHeaders[key] = value;
});
const headers: any = Object.assign({}, stageOneHeaders as unknown);
const response: AxiosResponse = {
status: stageOne.status,
statusText: stageOne.statusText,
Expand Down

0 comments on commit e3fb7bf

Please sign in to comment.