aboutsummaryrefslogtreecommitdiffstats
path: root/src/listing.rs
diff options
context:
space:
mode:
authorboasting-squirrel <boasting.squirrel@gmail.com>2019-04-13 21:18:55 +0000
committerboasting-squirrel <boasting.squirrel@gmail.com>2019-04-13 21:18:55 +0000
commit81d045baa85aca53e915ebfdcf629036d2a30971 (patch)
treee181b4bc819d0cc755e6fcbc46b71f36efb0fd41 /src/listing.rs
parentUpdate README.md (diff)
downloadminiserve-81d045baa85aca53e915ebfdcf629036d2a30971.tar.gz
miniserve-81d045baa85aca53e915ebfdcf629036d2a30971.zip
Fix issue #63
Diffstat (limited to '')
-rw-r--r--src/listing.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/listing.rs b/src/listing.rs
index fdabc48..aa0ba05 100644
--- a/src/listing.rs
+++ b/src/listing.rs
@@ -240,7 +240,7 @@ pub fn directory_listing<S>(
}
}
- let color_scheme = color_scheme.unwrap_or(default_color_scheme);
+ let color_scheme = color_scheme.unwrap_or(default_color_scheme.clone());
if let Some(compression_method) = &download {
log::info!(
@@ -280,6 +280,7 @@ pub fn directory_listing<S>(
page_parent,
sort_method,
sort_order,
+ default_color_scheme,
color_scheme,
file_upload,
&upload_route,