Skip to content
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

Better handling of ws_url, and avoid stripping query params from url #447

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

Aubermean
Copy link

Hi,

This fixes some compatibility issues with browserless v2 and possibly others.

An issue with the parse_json_version was that it would turn the ws scheme into http, strip query params and request /json/version. This is the first problem, stripping query params which often include an auth token and other configuration.

The second concern was that the initializer would override the ws_url based on what that endpoint would show, in the case of browserless that would be 0.0.0.0:3000. If the ws_url has been set, ferrum should not try to override that.

This is my first OSS PR so I am sorry if I did some thing wrong.

#439

@route
Copy link
Member

route commented Feb 23, 2024

Tests are failing

@route route merged commit 0b1c216 into rubycdp:main Feb 26, 2024
0 of 5 checks passed
@route
Copy link
Member

route commented Feb 26, 2024

Merged with other fixes manually.

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.

2 participants