Skip to content

Commit

Permalink
fix: do not use frozen object for headers (#334)
Browse files Browse the repository at this point in the history
Sometimes the headers are mutated by the environment the code is run in...

resolves storacha/w3up#1254
  • Loading branch information
Alan Shaw authored Jan 15, 2024
1 parent 2200d43 commit 1abd266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/transport/src/car/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const encode = (message, options) => {
})

return {
headers: HEADERS,
headers: { ...HEADERS },
body,
}
}
Expand Down

0 comments on commit 1abd266

Please sign in to comment.