aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonas Diemer <jonasdiemer@gmail.com>2022-08-04 09:11:47 +0000
committerJonas Diemer <jonasdiemer@gmail.com>2022-09-18 18:25:37 +0000
commit54738df913e7b41967b6e56b871ba0a6bf32a190 (patch)
treeb4f8393ac9c77ad575ba128a4d7bd9f6c145b912 /src
parentRenamed option for more clarity (diff)
downloadminiserve-54738df913e7b41967b6e56b871ba0a6bf32a190.tar.gz
miniserve-54738df913e7b41967b6e56b871ba0a6bf32a190.zip
Update src/file_upload.rs
Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/file_upload.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_upload.rs b/src/file_upload.rs
index 231999f..68371e8 100644
--- a/src/file_upload.rs
+++ b/src/file_upload.rs
@@ -176,7 +176,7 @@ pub async fn upload_file(
let upload_allowed = conf.allowed_upload_dir.is_empty() ||
conf.allowed_upload_dir.iter().any(|s| upload_path.starts_with(s));
- if !(upload_allowed) {
+ if !upload_allowed {
return Err(ContextualError::InvalidPathError("Not allowed to upload to this path".to_string()));
}