Skip to content

Commit

Permalink
feat(): safe handle Record<string, string | ReadonlyArray<string>>
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Orlovsky committed Sep 11, 2024
1 parent c0aae71 commit 4a1f98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export class FetchInstrumentation {
});
}
// Handle Record<string, string | ReadonlyArray<string>>
else if (headers && typeof headers === 'object' && !Array.isArray(headers)) {
else if (headers && typeof headers === 'object') {
Object.entries(headers).forEach(([key, value]) => {
if (Array.isArray(value)) {
// Join array elements into a single string
Expand Down

0 comments on commit 4a1f98a

Please sign in to comment.