Skip to content

Commit 33660b6

Browse files
chore(client): qualify global Blob
1 parent 58d2f1d commit 33660b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ export class Kernel {
742742
// Preserve legacy string encoding behavior for now
743743
headers.values.has('content-type')) ||
744744
// `Blob` is superset of `File`
745-
body instanceof Blob ||
745+
((globalThis as any).Blob && body instanceof (globalThis as any).Blob) ||
746746
// `FormData` -> `multipart/form-data`
747747
body instanceof FormData ||
748748
// `URLSearchParams` -> `application/x-www-form-urlencoded`

0 commit comments

Comments
 (0)