Skip to content

Commit

Permalink
chore: add missing parenthesis in header (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
posixpascal authored Jan 3, 2023
1 parent f642abc commit fc35352
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,12 @@ function extractLinks(

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

.map((i) => decodeURIComponent(i))
);

for (const link of _links.filter(Boolean)) {
const parsed = parseURL(link);
Expand Down

0 comments on commit fc35352

Please sign in to comment.