Skip to content

Commit dc19816

Browse files
authored
Merge pull request #1173 from hey-api/feat/services-class-parser
feat: use new parser for services
2 parents 25e0331 + 4f0263e commit dc19816

File tree

21 files changed

+536
-122
lines changed

21 files changed

+536
-122
lines changed

packages/client-fetch/src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ export const getParseAs = (
332332
return;
333333
}
334334

335+
// TODO: parser - better detection of MIME types
335336
if (content.startsWith('application/json') || content.endsWith('+json')) {
336337
return 'json';
337338
}

0 commit comments

Comments
 (0)