Skip to content

Commit ab9a992

Browse files
committed
fix(workers/versions): use json multipart syntax
1 parent d1168df commit ab9a992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/workers/scripts/versions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class Versions extends APIResource {
3131
return (
3232
this._client.post(
3333
`/accounts/${account_id}/workers/scripts/${scriptName}/versions`,
34-
Core.multipartFormRequestOptions({ body, ...options }),
34+
Core.multipartFormRequestOptions({ body, ...options, __multipartSyntax: 'json' }),
3535
) as Core.APIPromise<{ result: VersionCreateResponse }>
3636
)._thenUnwrap((obj) => obj.result);
3737
}

0 commit comments

Comments
 (0)