Skip to content

Commit

Permalink
add SetHTTP2HeaderPriority to ImpersonateChrome
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Aug 4, 2023
1 parent d74b2ce commit b960634
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client_impersonate.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ func (c *Client) ImpersonateChrome() *Client {
SetCommonHeaders(chromeHeaders).
SetCommonHeaderOrder(chromeHeaderOrder...).
SetHTTP2SettingsFrame(http2SettingsChrome...).
SetHTTP2ConnectionFlow(15663105)
SetHTTP2ConnectionFlow(15663105).
SetHTTP2HeaderPriority(http2.PriorityParam{
StreamDep: 0,
Exclusive: true,
Weight: 255,
})
return c
}

0 comments on commit b960634

Please sign in to comment.