From 94c171d6bf24c236e3c485ecf2b6225d4a6fde88 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sun, 7 Jul 2024 01:57:07 +0200 Subject: [PATCH] Fix missing postprocessing when the response is not ok --- src/middleware/postProcessing.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/middleware/postProcessing.ts b/src/middleware/postProcessing.ts index e63ef43..75eb95d 100644 --- a/src/middleware/postProcessing.ts +++ b/src/middleware/postProcessing.ts @@ -46,11 +46,6 @@ export const postProcessingMiddleware = defineMiddleware(async ({ cookies, local const currentCurrency = getCookieCurrency(cookies) ?? "USD"; const response = await next(); - - if (!response.ok) { - return response; - } - let html = await response.text(); // HTML CLASS