mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
add support for mvc and hero dynamic dependencies to understand the error type as a second output value as requested at: https://github.com/kataras/iris/issues/1187
Former-commit-id: 49e29c06aaaa22743354981342c29fc9d5953d0e
This commit is contained in:
@@ -808,7 +808,7 @@ func DialContext(ctx stdContext.Context, url string, cfg ConnectionConfig) (Clie
|
||||
ctx = stdContext.Background()
|
||||
}
|
||||
|
||||
if !strings.HasPrefix(url, "ws://") {
|
||||
if !strings.HasPrefix(url, "ws://") || !strings.HasPrefix(url, "wss://") {
|
||||
url = "ws://" + url
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user