Skip to content

fix: make it possible to send connect_over_cdp headers #1912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2023

Conversation

mxschmitt
Copy link
Member

Fixes #1910

@mxschmitt mxschmitt requested a review from yury-s May 11, 2023 07:50
@@ -166,6 +167,8 @@ async def connect_over_cdp(
headers: Dict[str, str] = None,
) -> Browser:
params = locals_to_params(locals())
if params.get("headers"):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will that be applied to the sync context as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@yury-s yury-s merged commit 572a78a into main May 11, 2023
@yury-s yury-s deleted the send-headers-for-cdp branch May 11, 2023 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] playwright._impl._api_types.Error: headers: expected array, got object
3 participants