aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2024-10-11 03:21:41 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2024-10-11 03:21:41 +0000
commitbc6e1f9faab1d22b4f3eee2892dc5e21bac7c62c (patch)
tree1e6586700f20eeea3e4b13b70b794f46e48ea5d8
parentMerge pull request #1455 from svenstaro/dependabot/cargo/all-dependencies-7d5... (diff)
downloadminiserve-bc6e1f9faab1d22b4f3eee2892dc5e21bac7c62c.tar.gz
miniserve-bc6e1f9faab1d22b4f3eee2892dc5e21bac7c62c.zip
Prefix OVERWRITE_FILES env var
Fixes #1457.
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/args.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1271177..a694801 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] - ReleaseDate
- Make URL encoding fully WHATWG-compliant [#1454](https://github.com/svenstaro/miniserve/pull/1454) (thanks @cyqsimon)
+- Fix `OVERWRITE_FILES` env var not being prefixed by `MINISERVE_` [#1457](https://github.com/svenstaro/miniserve/issues/1457)
## [0.28.0] - 2024-09-12
- Fix wrapping text in mobile view when the file name too long [#1379](https://github.com/svenstaro/miniserve/pull/1379) (thanks @chaibiq)
diff --git a/src/args.rs b/src/args.rs
index dd09f65..ce6e4e2 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -195,7 +195,7 @@ pub struct CliArgs {
pub media_type_raw: Option<String>,
/// Enable overriding existing files during file upload
- #[arg(short = 'o', long = "overwrite-files", env = "OVERWRITE_FILES")]
+ #[arg(short = 'o', long = "overwrite-files", env = "MINISERVE_OVERWRITE_FILES")]
pub overwrite_files: bool,
/// Enable uncompressed tar archive generation