From fe6cc022249a873279af2202e4f9c6a68c116095 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Mon, 14 Apr 2025 14:52:50 -0300 Subject: [PATCH] fix: close sse connections --- src/api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api.ts b/src/api.ts index c5d75e37..fdb83b81 100644 --- a/src/api.ts +++ b/src/api.ts @@ -104,6 +104,7 @@ export function createStreamingFetchAdapter(axiosInstance: AxiosInstance) { const response = await axiosInstance.request({ url: urlStr, + signal: init?.signal, headers: init?.headers as Record, responseType: "stream", validateStatus: () => true, // Don't throw on any status code