Skip to content

Commit

Permalink
feat: support Authorization overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrotzpc committed Aug 19, 2024
1 parent a016cbd commit a66a66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const requestMiddleware: RequestMiddleware<any> = request => {
operationName,
credentials: 'include',
...otherRequest,
headers: Authorization ? { ...request.headers, Authorization } : { ...request.headers },
headers: Authorization ? { Authorization, ...request.headers } : { ...request.headers },
};
};

Expand Down

0 comments on commit a66a66c

Please sign in to comment.