update
This commit is contained in:
parent
6bb1bbc632
commit
5729fd3650
@ -25,7 +25,7 @@ function getUrl (req, res) {
|
|||||||
const theUrl = req.params.encoded_id;
|
const theUrl = req.params.encoded_id;
|
||||||
logger.debug('Want', theUrl);
|
logger.debug('Want', theUrl);
|
||||||
const options = URL.parse(theUrl);
|
const options = URL.parse(theUrl);
|
||||||
|
options.followAllRedirects = true;
|
||||||
options.headers = {
|
options.headers = {
|
||||||
'User-Agent' : 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36'
|
'User-Agent' : 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36'
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user