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
fix #622
  • Loading branch information
vaiil authored and Xiphe committed Apr 23, 2024
1 parent 930995b commit 810c3fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/runtime/src/runtime.ts
Expand Up @@ -152,6 +152,8 @@ export function runtime(defaults: RequestOpts = {}) {
const append = (name: string, value: unknown) => {
if (typeof value === "string" || value instanceof Blob) {
data.append(name, value);
} else if (typeof value === "number") {
data.append(name, String(value));
} else {
data.append(
name,
Expand Down

0 comments on commit 810c3fa

Please sign in to comment.