Revert "Revert "set content type""

This reverts commit 974620b93f.
main
Lee Hanken 2022-01-27 13:40:41 +00:00
parent 10ec344c38
commit ce97090936
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 {