Skip to content

Commit

Permalink
Do not add the extra parameters headers (#100)
Browse files Browse the repository at this point in the history
* Do not add the extra parameters headers

* test on uptodate versions of node
  • Loading branch information
soulgalore authored Feb 21, 2023
1 parent 9fbd89a commit dc1e6b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
8 changes: 0 additions & 8 deletions lib/entryFromResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) =>
Expand Down

0 comments on commit dc1e6b7

Please sign in to comment.