Skip to content

Commit

Permalink
fix: Prevent mutation of global headers config
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Oct 8, 2024
1 parent ec74305 commit 8abba41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/queries/base-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export abstract class BaseQuery<TResponse extends BaseResponses.IContentManageme
protected queryService: ManagementQueryService
) {
this.queryConfig = {
headers: config.headers ?? [],
headers: config.headers ? [...config.headers] : [],
cancelTokenRequest: undefined
};
}
Expand Down

0 comments on commit 8abba41

Please sign in to comment.