mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: enable followRedirects for NodeWebSocket (#7555)
This commit is contained in:
parent
10e847404e
commit
5735f31d78
@ -20,6 +20,7 @@ export class NodeWebSocketTransport implements ConnectionTransport {
|
|||||||
static create(url: string): Promise<NodeWebSocketTransport> {
|
static create(url: string): Promise<NodeWebSocketTransport> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const ws = new NodeWebSocket(url, [], {
|
const ws = new NodeWebSocket(url, [], {
|
||||||
|
followRedirects: true,
|
||||||
perMessageDeflate: false,
|
perMessageDeflate: false,
|
||||||
maxPayload: 256 * 1024 * 1024, // 256Mb
|
maxPayload: 256 * 1024 * 1024, // 256Mb
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user