a little error handling
This commit is contained in:
parent
0423d33aa8
commit
e38257ece5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user