We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3387f89 commit e84ca7fCopy full SHA for e84ca7f
playwright/_impl/_helper.py
@@ -244,7 +244,9 @@ def resolve_base_url(
244
url = urlparse(urljoin(base_url if base_url is not None else "", given_url))
245
246
# In Node.js, new URL('http://localhost') returns 'http://localhost/'.
247
- if url.scheme.startswith("http") and url.path == "":
+ if (
248
+ url.scheme.startswith("http") or url.scheme.startswith("ws")
249
+ ) and url.path == "":
250
url = url._replace(path="/")
251
252
resolved = urlunparse(url)
0 commit comments