Skip to content

Commit feffee8

Browse files
chore(client): qualify global Blob
1 parent b0383ec commit feffee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.ts

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

0 commit comments

Comments
 (0)