Skip to content

Commit

Permalink
Merge pull request #1051 from aligent/feature/DO-1468_prerender_check…
Browse files Browse the repository at this point in the history
…_code_cleanup

Prerender check function code cleanup
  • Loading branch information
krishanthisera authored May 26, 2023
2 parents 50f4f4a + f666c34 commit 29c71e2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/prerender-proxy/lib/handlers/prerender-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = [
{
Expand Down

0 comments on commit 29c71e2

Please sign in to comment.