···11+---
22+'@hey-api/client-fetch': minor
33+---
44+55+[BREAKING] return raw response body (of type `ReadableStream`) when `Content-Type` response header is not provided and `parseAs` is set to `auto`
···327327 */
328328export const getParseAs = (
329329 contentType: string | null,
330330-): Exclude<Config['parseAs'], 'auto' | 'stream'> => {
330330+): Exclude<Config['parseAs'], 'auto'> => {
331331 if (!contentType) {
332332- return;
332332+ // If no Content-Type header is provided, the best we can do is return the raw response body,
333333+ // which is effectively the same as the 'stream' option.
334334+ return 'stream';
333335 }
334336335337 const cleanContent = contentType.split(';')[0]?.trim();