Skip to content

Commit

Permalink
fix: Guard getReader function for other fetch implementations (#13246)
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome committed Aug 6, 2024
1 parent d125ff2 commit ddff302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/instrument/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function instrumentFetch(onFetchResolved?: (response: Response) => void, skipNat
}

async function resolveResponse(res: Response | undefined, onFinishedResolving: () => void): Promise<void> {
if (res && res.body) {
if (res && res.body && res.body.getReader) {
const responseReader = res.body.getReader();

// eslint-disable-next-line no-inner-declarations
Expand Down

0 comments on commit ddff302

Please sign in to comment.