diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 0764873..d7e411f 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [10.x, 12.x] + node-version: [16.x, 18.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} diff --git a/lib/entryFromResponse.js b/lib/entryFromResponse.js index 0a6bc4c..ef8affa 100644 --- a/lib/entryFromResponse.js +++ b/lib/entryFromResponse.js @@ -34,14 +34,6 @@ module.exports = function(entry, response, page, options) { let headers = parseHeaders(responseHeaders); if (entry.extraResponseInfo) { - if (entry.extraResponseInfo.headers) { - headers = entry.extraResponseInfo.headers.concat( - headers.filter( - ({ name }) => !headers.find(header => header.name === name) - ) - ); - } - if (entry.extraResponseInfo.blockedCookies) { cookies = cookies.filter( ({ name }) =>