update
This commit is contained in:
parent
36555af489
commit
259f9f1a10
@ -25,6 +25,10 @@ function getUrl (req, res) {
|
||||
const theUrl = req.params.encoded_id;
|
||||
logger.debug('Want', theUrl);
|
||||
const options = URL.parse(theUrl);
|
||||
|
||||
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'
|
||||
};
|
||||
|
||||
console.log('Options', options);
|
||||
logger.info('>> getting url');
|
||||
@ -48,7 +52,7 @@ function getUrl (req, res) {
|
||||
}
|
||||
}
|
||||
|
||||
urlQuery(a => {
|
||||
urlQuery(a => {
|
||||
// logger.info(a);
|
||||
logger.info('Got result', a);
|
||||
// res.setHeader('Content-Type', 'application/json');
|
||||
|
Loading…
Reference in New Issue
Block a user