Commit 20bc40a
committed
fix(client): preserve hub path prefix when building the ws url
_to_ws_url documented that it keeps the port and any path prefix, but it
only kept u.netloc and appended the ws path, so a scheme'd url like
https://hub.example.com/zhub lost the /zhub prefix. A hub reverse-proxied
under a path was silently routed to the wrong /ws endpoint. Keep u.path as
a prefix (stripping a trailing slash); the bare-host branch splits host
from prefix the same way. Port handling is unchanged.1 parent 3c9b342 commit 20bc40a
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | | - | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
0 commit comments