diff --git a/src/core.ts b/src/core.ts index 2734d514..c7a3b4f5 100644 --- a/src/core.ts +++ b/src/core.ts @@ -42,6 +42,8 @@ type APIResponseProps = { async function defaultParseResponse<T>(props: APIResponseProps): Promise<T> { 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<T>` return Stream.fromSSEResponse(response, props.controller) as any;