|
|
@ -71,7 +71,7 @@ open class WebDav(val path: String, val authorization: Authorization) { |
|
|
|
private val webDavClient by lazy { |
|
|
|
private val webDavClient by lazy { |
|
|
|
val authInterceptor = Interceptor { chain -> |
|
|
|
val authInterceptor = Interceptor { chain -> |
|
|
|
var request = chain.request() |
|
|
|
var request = chain.request() |
|
|
|
if (request.url.host == host) { |
|
|
|
if (request.url.host.equals(host, true)) { |
|
|
|
request = request |
|
|
|
request = request |
|
|
|
.newBuilder() |
|
|
|
.newBuilder() |
|
|
|
.header(authorization.name, authorization.data) |
|
|
|
.header(authorization.name, authorization.data) |
|
|
|