refetch stackoverflow rather than parsing supplied url
parent
f7e7f86700
commit
5be51ddb7e
4
index.js
4
index.js
|
@ -68,6 +68,10 @@ app.post('/', function(req, res) {
|
|||
if (links) {
|
||||
ignore_links = (links === 'false');
|
||||
}
|
||||
if (url && url.startsWith('https://stackoverflow.com/')) {
|
||||
read_url(url, res, inline_title, ignore_links);
|
||||
return;
|
||||
}
|
||||
if (!html) {
|
||||
res.status(400).send("Please provide a POST parameter called html");
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue