From 97b39037e7fc906199f1b30ba7742e70d3818a8a Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Thu, 4 Jun 2020 09:11:33 +1000 Subject: [PATCH] Fix for relative redirects --- src/drivers/npm/driver.js | 2 +- src/drivers/npm/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index d6958a696..fcc6dd6be 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -329,7 +329,7 @@ class Site { if (response.status() >= 300 && response.status() < 400) { if (this.headers.location) { - url = new URL(this.headers.location.slice(-1)) + url = new URL(this.headers.location.slice(-1), url) } } else { responseReceived = true diff --git a/src/drivers/npm/package.json b/src/drivers/npm/package.json index a9c0a503d..c016d3fb0 100644 --- a/src/drivers/npm/package.json +++ b/src/drivers/npm/package.json @@ -13,7 +13,7 @@ "software" ], "homepage": "https://www.wappalyzer.com", - "version": "5.10.3", + "version": "6.0.3", "author": "Wappalyzer", "license": "MIT", "repository": {