You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/02/23 15:50:55 UTC
(opendal) branch main updated: fix(services/webdav): Fix possible error with value loosing from config (#4262)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new ab52b437fd fix(services/webdav): Fix possible error with value loosing from config (#4262)
ab52b437fd is described below
commit ab52b437fdb19b7fbaa4be850e00c84f360d06f1
Author: Alex Overchenko <al...@gmail.com>
AuthorDate: Fri Feb 23 18:50:50 2024 +0300
fix(services/webdav): Fix possible error with value loosing from config (#4262)
Fix possible error with value loosing from config
---
core/src/services/webdav/backend.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/services/webdav/backend.rs b/core/src/services/webdav/backend.rs
index 781ed36c51..81508b7f65 100644
--- a/core/src/services/webdav/backend.rs
+++ b/core/src/services/webdav/backend.rs
@@ -179,7 +179,7 @@ impl Builder for WebdavBuilder {
}
};
- let root = normalize_root(&self.config.root.take().unwrap_or_default());
+ let root = normalize_root(&self.config.root.clone().unwrap_or_default());
debug!("backend use root {}", root);
let client = if let Some(client) = self.http_client.take() {