From 751e53a675d06285e71dd49739a6e811da3d0a21 Mon Sep 17 00:00:00 2001 From: gintil Date: Sat, 27 Jan 2024 19:43:29 -0500 Subject: [PATCH] Prevent large feeds from getting disabled --- .../feed-requests/src/feed-fetcher/feed-fetcher.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/feed-requests/src/feed-fetcher/feed-fetcher.service.ts b/services/feed-requests/src/feed-fetcher/feed-fetcher.service.ts index e837920b1..b8883fef5 100644 --- a/services/feed-requests/src/feed-fetcher/feed-fetcher.service.ts +++ b/services/feed-requests/src/feed-fetcher/feed-fetcher.service.ts @@ -235,9 +235,9 @@ export class FeedFetcherService { const sizeOfTextInMb = Buffer.byteLength(text) / 1024 / 1024; - if (sizeOfTextInMb > 7) { - throw new FeedTooLargeException(`Response body is too large`); - } + // if (sizeOfTextInMb > 7) { + // throw new FeedTooLargeException(`Response body is too large`); + // } try { const deflated = await deflatePromise(text);