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 18a112e commit e6c22b5Copy full SHA for e6c22b5
Sources/AMQPClient/AMQPConnectionConfiguration.swift
@@ -98,7 +98,7 @@ public extension AMQPConnectionConfiguration {
98
guard let scheme = UrlScheme(rawValue: url.scheme ?? "") else { throw AMQPConnectionError.invalidUrlScheme }
99
100
// there is no such thing as a "" host
101
- let host = url.host?.isEmpty == true ? nil : url.host
+ let host = url.host?.isEmpty == true ? nil : url.host?.removingPercentEncoding
102
//special path magic for vhost interpretation (see https://www.rabbitmq.com/uri-spec.html)
103
var vhost = url.path.isEmpty ? nil : String(url.path.removingPercentEncoding?.dropFirst() ?? "")
104
0 commit comments