You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
really this is #147, but we're using a custom Proxy and the behavior of parseURL() breaks our code as we pass URL's String() to the function that actually searches for the proxy (Java's URI()/ ProxySelector.Select(), we're running on Android using gomobile)
To restate the issue: the connection URL is "wss://example.com/im/connect?foo=bar".
parseURL() returns &url.URL{Scheme:"wss", Opaque:"/im/connect", Host:"example.com", RawQuery:"foo=bar"} that resolves to "wss:/im/connect?foo=bar" when calling String(). The problem is that the host is missing.
net/url.Parse() would return &url.URL{Scheme:"wss", Host:"example.com", Path:"/im/connect", RawQuery:"foo=bar"} that resolves to "wss://example.com/im/connect?foo=bar" as expected (go 1.9).
The text was updated successfully, but these errors were encountered:
really this is #147, but we're using a custom Proxy and the behavior of parseURL() breaks our code as we pass URL's String() to the function that actually searches for the proxy (Java's URI()/ ProxySelector.Select(), we're running on Android using gomobile)
To restate the issue: the connection URL is "wss://example.com/im/connect?foo=bar".
&url.URL{Scheme:"wss", Opaque:"/im/connect", Host:"example.com", RawQuery:"foo=bar"}
that resolves to "wss:/im/connect?foo=bar" when calling String(). The problem is that the host is missing.&url.URL{Scheme:"wss", Host:"example.com", Path:"/im/connect", RawQuery:"foo=bar"}
that resolves to "wss://example.com/im/connect?foo=bar" as expected (go 1.9).The text was updated successfully, but these errors were encountered: