Skip to content

Commit

Permalink
Update src/utils/response.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 26, 2022
1 parent 1cd32f5 commit 460825d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function sendRedirect (event: CompatibilityEvent, location: string, code
const html = `<!DOCTYPE html>
<html>
<head><meta http-equiv="refresh" content="0; url=${encodeURI(location)}"></head>
<body>Redirecting to <a href=${JSON.stringify(location)}>${location}</a></body>
<body>Redirecting to <a href=${JSON.stringify(location)}>${encodeURI(location)}</a></body>
</html>`
return send(event, html, MIMES.html)
}
Expand Down

0 comments on commit 460825d

Please sign in to comment.