Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Feb 3, 2025
1 parent 358335a commit 3f01769
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/Shared/Services/Api.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1541,10 +1541,7 @@ export class ApiService {
cfg.headers = new Headers();
}
const mergedHeaders = new Headers();
[headers, cfg.headers].forEach((source) => {
const h = new Headers(source);
h.forEach((v, k) => mergedHeaders.set(k, v));
});
[headers, cfg.headers].forEach((source) => new Headers(source).forEach((v, k) => mergedHeaders.set(k, v)));
cfg.headers = mergedHeaders;
return cfg;
}),
Expand Down

0 comments on commit 3f01769

Please sign in to comment.