From 5729fd365047495786cf90fb550f5d6f32704e8a Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Mon, 11 Sep 2017 11:50:04 +0100 Subject: [PATCH] update --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index e21ddcb..52b8dbb 100644 --- a/server.js +++ b/server.js @@ -25,7 +25,7 @@ function getUrl (req, res) { const theUrl = req.params.encoded_id; logger.debug('Want', theUrl); const options = URL.parse(theUrl); - + options.followAllRedirects = true; 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' };