Skip to content

Commit d4ce21e

Browse files
fix: always use multipart/form-data for some endpoints
1 parent 0f0ba6e commit d4ce21e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/resources/kv/namespaces/values.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@ export class Values extends APIResource {
3737
return (
3838
this._client.put(
3939
`/accounts/${account_id}/storage/kv/namespaces/${namespaceId}/values/${keyName}`,
40-
Core.maybeMultipartFormRequestOptions({
41-
query: { expiration, expiration_ttl },
42-
body,
43-
...options,
44-
headers: { 'Content-Type': 'application/octet-stream', ...options?.headers },
45-
__binaryRequest: true,
46-
}),
40+
Core.multipartFormRequestOptions({ query: { expiration, expiration_ttl }, body, ...options }),
4741
) as Core.APIPromise<{ result: ValueUpdateResponse | null }>
4842
)._thenUnwrap((obj) => obj.result);
4943
}

0 commit comments

Comments
 (0)