From f666c34f8c42df1fbb83c1966d7eb73965b9f2bd Mon Sep 17 00:00:00 2001 From: Krishan Thisera Date: Fri, 26 May 2023 15:19:13 +0930 Subject: [PATCH] DO-1468: prerender check function code cleanup --- packages/prerender-proxy/lib/handlers/prerender-check.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/prerender-proxy/lib/handlers/prerender-check.ts b/packages/prerender-proxy/lib/handlers/prerender-check.ts index 1d07824c..258e7007 100644 --- a/packages/prerender-proxy/lib/handlers/prerender-check.ts +++ b/packages/prerender-proxy/lib/handlers/prerender-check.ts @@ -15,12 +15,6 @@ export const handler = async ( // then set the x-request-prerender header so the origin-request lambda function // alters the origin to prerender.io if (IS_BOT.test(request.headers["user-agent"][0].value)) { - request.headers["x-is-a-bot"] = [ - { - key: "x-is-a-bot", - value: "true", - }, - ]; if (!IS_FILE.test(request.uri) && !request.headers["x-prerender"]) { request.headers["x-request-prerender"] = [ {