Skip to content

Commit

Permalink
fix(prerender): decode uris in headers (#1932)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Nov 20, 2023
1 parent d2edd98 commit 30e1c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,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()));
_links.push(...header.split(",").map((i) => decodeURIComponent(i.trim())));

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

0 comments on commit 30e1c13

Please sign in to comment.