Skip to content

Commit

Permalink
Merge pull request #5 from leftys/master
Browse files Browse the repository at this point in the history
fix url query
  • Loading branch information
tarasko authored Oct 1, 2024
2 parents f997002 + 7fbe7bf commit 6424289
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion picows/picows.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,10 @@ async def ws_connect(ws_listener_factory: Callable[[], WSListener],
else:
raise ValueError(f"invalid url scheme: {url}")

ws_protocol_factory = lambda: WSProtocol(url_parts.netloc, url_parts.path, True, ws_listener_factory,
path_plus_query = url_parts.path
if url_parts.query:
path_plus_query += "?" + url_parts.query
ws_protocol_factory = lambda: WSProtocol(url_parts.netloc, path_plus_query, True, ws_listener_factory,
logger_name, disconnect_on_exception, websocket_handshake_timeout)

cdef WSProtocol ws_protocol
Expand Down

0 comments on commit 6424289

Please sign in to comment.