aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2025-02-06 02:03:47 +0000
committerGitHub <noreply@github.com>2025-02-06 02:03:47 +0000
commit41ccc9f0c9e3b20434389d7ddb4a922b21c8f765 (patch)
tree0907869057fea553c26601aaca6d2443fcc9de97 /src/config.rs
parentMerge pull request #1470 from svenstaro/dependabot/cargo/all-dependencies-184... (diff)
parentadd read-only webdav support (diff)
downloadminiserve-41ccc9f0c9e3b20434389d7ddb4a922b21c8f765.tar.gz
miniserve-41ccc9f0c9e3b20434389d7ddb4a922b21c8f765.zip
Merge pull request #1415 from ahti/webdav
add read-only webdav support
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 984f873..5d2d7e8 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -149,6 +149,9 @@ pub struct MiniserveConfig {
/// If enabled, indexing is disabled.
pub disable_indexing: bool,
+ /// If enabled, respond to WebDAV requests (read-only).
+ pub webdav_enabled: bool,
+
/// If set, use provided rustls config for TLS
#[cfg(feature = "tls")]
pub tls_rustls_config: Option<rustls::ServerConfig>,
@@ -306,6 +309,7 @@ impl MiniserveConfig {
show_wget_footer: args.show_wget_footer,
readme: args.readme,
disable_indexing: args.disable_indexing,
+ webdav_enabled: args.enable_webdav,
tls_rustls_config: tls_rustls_server_config,
compress_response: args.compress_response,
})