a little error handling

This commit is contained in:
Martin Donnelly 2018-06-13 23:56:32 +01:00
parent 0423d33aa8
commit e38257ece5

View File

@ -144,7 +144,7 @@ function getUrl (req, res) {
logger.warn(response.headers.location);
logger.debug(response.headers);
const tempUrl = new URL(theUrl);
const tempUrl = URL.parse(theUrl);
const newURL = `${tempUrl.origin}${response.headers.location}`;
logger.debug('newURL', newURL);
rUrl = URL.parse(newURL);