Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix(workers): drain response bodies on redirects

Mohamed Bassem5cd07ee9e65d
diff --git a/apps/workers/network.ts b/apps/workers/network.ts
index 034bb0a5..9466d2ca 100644
--- a/apps/workers/network.ts
+++ b/apps/workers/network.ts
@@ -526,6 +526,8 @@ export const fetchWithProxy = async (
return response;
}
+ closeResponseBody(response);
+
if (redirectsRemaining <= 0) {
throw new Error(`Too many redirects while fetching ${url}`);
}