Skip to content

Commit

Permalink
URI-encode resultant location when performing periodic note redirect. F…
Browse files Browse the repository at this point in the history
…ixes #13.
  • Loading branch information
coddingtonbear committed Apr 26, 2022
1 parent 579b5c9 commit a27c603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/requestHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ export default class RequestHandler {
handler: (path: string, req: express.Request, res: express.Response) => void
): void {
const path = file.path;
res.set("Content-Location", path);
res.set("Content-Location", encodeURI(path));

return handler(path, req, res);
}
Expand Down

0 comments on commit a27c603

Please sign in to comment.