From 5c7cc5803fa1bba7a934f5e9a536e7b41448ea21 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Mon, 23 Jan 2023 13:54:41 +0100 Subject: [PATCH] Fix crash on Twitter link #102 --- Packages/Network/Sources/Network/Client.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }