We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FormData
parseAs
formData
1 parent 9793e70 commit f8cb3fdCopy full SHA for f8cb3fd
packages/openapi-ts/src/plugins/@hey-api/client-ofetch/bundle/utils.ts
@@ -379,9 +379,9 @@ export const parseSuccess = async (
379
}
380
381
382
- // Prefer ofetch-populated data
+ // Prefer ofetch-populated data unless we explicitly need raw `formData`
383
let data: unknown = (response as any)._data;
384
- if (typeof data === 'undefined') {
+ if (inferredParseAs === 'formData' || typeof data === 'undefined') {
385
switch (inferredParseAs) {
386
case 'arrayBuffer':
387
case 'blob':
0 commit comments