Don't send requests with empty paths

This commit is contained in:
Shadowfacts 2020-09-29 16:28:17 -04:00
parent 182bb4b79b
commit 19848ba8e4
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,11 @@ public class NavigationManager: NSObject, ObservableObject {
components.path = "/"
}
// Some Gemini servers break on empty paths
if components.path.isEmpty {
components.path = "/"
}
let url = components.url!
backStack.append(currentURL)