diff --git a/Packages/Network/Sources/Network/Client.swift b/Packages/Network/Sources/Network/Client.swift index 88dc8d0b..66b799a4 100644 --- a/Packages/Network/Sources/Network/Client.swift +++ b/Packages/Network/Sources/Network/Client.swift @@ -49,7 +49,7 @@ public class Client: ObservableObject, Equatable { } public func hasConnection(with url: URL) -> Bool { - guard let host = url.host(percentEncoded: false) else { return false } + guard let host = url.host else { return false } return connections.contains(host) }