From bc6e1f9faab1d22b4f3eee2892dc5e21bac7c62c Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 11 Oct 2024 05:21:41 +0200 Subject: [PATCH] Prefix OVERWRITE_FILES env var Fixes #1457. --- CHANGELOG.md | 1 + src/args.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1271177e2..a694801fa 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 dd09f65e4..ce6e4e2ee 100644 --- a/src/args.rs +++ b/src/args.rs @@ -195,7 +195,7 @@ pub struct CliArgs { pub media_type_raw: Option, /// 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