diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4023b0361..5a15bb9a7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 16, 18, 20 ] + node-version: [ 18, 20 ] name: Jest on Node ${{ matrix.node-version }} steps: - name: Collect Workflow Telemetry @@ -78,7 +78,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 16, 18, 20 ] + node-version: [ 18, 20 ] chromium: - name: bundled Chromium dependency: '' @@ -127,7 +127,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 16, 18, 20 ] + node-version: [ 18, 20 ] defaults: run: working-directory: docs @@ -159,7 +159,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 16, 18, 20 ] + node-version: [ 18, 20 ] name: Build radar and maintainer on Node ${{ matrix.node-version }} steps: - uses: actions/checkout@v3 diff --git a/lib/utils/request-wrapper.js b/lib/utils/request-wrapper.js index 46c35f8bb..4e8c1eb1e 100644 --- a/lib/utils/request-wrapper.js +++ b/lib/utils/request-wrapper.js @@ -40,7 +40,7 @@ if (agent) { }; } else if (config.reverseProxyUrl) { proxyWrapper = (url, options) => { - const urlIn = options.url.toString() || url; + const urlIn = options.url?.toString() || url; const proxyRegex = new RegExp(proxyObj.url_regex); if (proxyRegex.test(urlIn) && !urlIn.startsWith(config.reverseProxyUrl) && !options.cookieJar) { options.url = new URL(`${config.reverseProxyUrl}${encodeURIComponent(urlIn)}`);