Skip to content

Commit

Permalink
fix: enable followRedirects for websocket connections
Browse files Browse the repository at this point in the history
* When making websocket connection, enable "follow redirects"

* Update package.json

* Update package-lock.json
  • Loading branch information
SteveSandersonMS authored Mar 6, 2020
1 parent 961151e commit 19cdd4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"@types/split2": "^2.1.6",
"@types/stream-buffers": "^3.0.3",
"@types/tmp": "^0.1.0",
"@types/ws": "^6.0.1",
"@types/ws": "^7.2.2",
"@typescript-eslint/eslint-plugin": "^2.11.0",
"@typescript-eslint/parser": "^2.11.0",
"chai": "^4.2.0",
Expand Down
1 change: 1 addition & 0 deletions src/cdp/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export class WebSocketTransport implements ITransport {
perMessageDeflate: false,
maxPayload: 256 * 1024 * 1024, // 256Mb
rejectUnauthorized: !(isSecure && targetAddressIsLoopback),
followRedirects: true,
});

return timeoutPromise(
Expand Down

0 comments on commit 19cdd4a

Please sign in to comment.