diff --git a/app/src/main/java/com/stevesoltys/seedvault/plugins/webdav/WebDavHandler.kt b/app/src/main/java/com/stevesoltys/seedvault/plugins/webdav/WebDavHandler.kt index 667b75681..42aee66b3 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/plugins/webdav/WebDavHandler.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/plugins/webdav/WebDavHandler.kt @@ -13,7 +13,6 @@ import com.stevesoltys.seedvault.plugins.StoragePluginManager import com.stevesoltys.seedvault.settings.SettingsManager import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.asStateFlow -import okhttp3.HttpUrl.Companion.toHttpUrl import java.io.IOException internal sealed interface WebDavConfigState { @@ -38,7 +37,7 @@ internal class WebDavHandler( companion object { fun createWebDavProperties(context: Context, config: WebDavConfig): WebDavProperties { - val host = config.url.toHttpUrl().host + val host = config.url.removePrefix("https://") return WebDavProperties( config = config, name = context.getString(R.string.storage_webdav_name, host),