diff --git a/src/core.ts b/src/core.ts index 4120de182..9cd99639d 100644 --- a/src/core.ts +++ b/src/core.ts @@ -42,6 +42,8 @@ type APIResponseProps = { async function defaultParseResponse(props: APIResponseProps): Promise { const { response } = props; if (props.options.stream) { + debug('response', response.status, response.url, response.headers, response.body); + // Note: there is an invariant here that isn't represented in the type system // that if you set `stream: true` the response type must also be `Stream` return Stream.fromSSEResponse(response, props.controller) as any;