Skip to content

Commit

Permalink
Merge pull request #1173 from hey-api/feat/services-class-parser
Browse files Browse the repository at this point in the history
feat: use new parser for services
  • Loading branch information
mrlubos authored Oct 20, 2024
2 parents 25e0331 + 4f0263e commit dc19816
Show file tree
Hide file tree
Showing 21 changed files with 536 additions and 122 deletions.
1 change: 1 addition & 0 deletions packages/client-fetch/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ export const getParseAs = (
return;
}

// TODO: parser - better detection of MIME types
if (content.startsWith('application/json') || content.endsWith('+json')) {
return 'json';
}
Expand Down
Loading

0 comments on commit dc19816

Please sign in to comment.