Skip to content

Commit

Permalink
fix(prerender): Adds missing parenthesis in header
Browse files Browse the repository at this point in the history
  • Loading branch information
posixpascal committed Jan 3, 2023
1 parent f642abc commit 74c92d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,7 @@ function extractLinks(

// Extract from x-nitro-prerender headers
const header = res.headers.get("x-nitro-prerender") || "";
_links.push(...header.split(",")
.map((i) => i.trim())
.map((i) => decodeURIComponent(i));
_links.push(...header.split(",").map((i) => i.trim()).map((i) => decodeURIComponent(i)));


for (const link of _links.filter(Boolean)) {
Expand Down

0 comments on commit 74c92d4

Please sign in to comment.