We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4de99a2 commit fb381d9Copy full SHA for fb381d9
packages/fetch-http-handler/src/fetch-http-handler.ts
@@ -72,10 +72,10 @@ export class FetchHttpHandler implements HttpHandler {
72
transformedHeaders[pair[0]] = pair[1];
73
}
74
75
- const hasResponseStream = typeof ReadableStream === "function";
+ const hasReadableStream = response.body !== undefined;
76
77
// Return the response with buffered body
78
- if (!hasResponseStream) {
+ if (!hasReadableStream) {
79
return response.blob().then(body => ({
80
response: new HttpResponse({
81
headers: transformedHeaders,
0 commit comments