Skip to content

Commit

Permalink
fix: rest header foreach (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepuppy authored May 17, 2024
1 parent f89f03f commit 36b0797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/abacus/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class AbacusRest implements AbacusRestProtocol {
.then(async (response) => {
const data = await response.text();
const headersObj: Record<string, string> = {};
response.headers.forEach(([key, value]) => {
response.headers.forEach((value, key) => {
headersObj[key] = value;
});
// Stringify the headers object
Expand Down

0 comments on commit 36b0797

Please sign in to comment.