set content type

main
Lee Hanken 2022-01-27 13:18:52 +00:00
parent 3d4cf8f829
commit cc84b2b2d9
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ app.get('/', (req, res) => {
url = req.query.url;
res.header("Access-Control-Allow-Origin", '*');
res.header("Access-Control-Expose-Headers", 'X-Title');
res.header("Content-Type", 'text/markdown');
if (url && validURL(url)) {
read_url(url, res);
} else {