Skip to content

Commit

Permalink
fix: do not treat numeric values in multipart as blob
Browse files Browse the repository at this point in the history
  • Loading branch information
vaiil committed Apr 23, 2024
1 parent 930995b commit 87bfc6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime/src/runtime.ts
Expand Up @@ -150,7 +150,7 @@ export function runtime(defaults: RequestOpts = {}) {
FormData)();

const append = (name: string, value: unknown) => {
if (typeof value === "string" || value instanceof Blob) {
if (typeof value === "string" || typeof value === "number" || value instanceof Blob) {
data.append(name, value);
} else {
data.append(
Expand Down

0 comments on commit 87bfc6a

Please sign in to comment.