aboutsummaryrefslogtreecommitdiffstats
path: root/src/listing.rs
diff options
context:
space:
mode:
authorboastful-squirrel <boastful.squirrel@gmail.com>2019-04-15 16:48:38 +0000
committerboastful-squirrel <boastful.squirrel@gmail.com>2019-04-15 16:48:38 +0000
commit6d65587e85433a2dd04ff0e6ff9612ad44af6e1c (patch)
tree32231ff27baa2104c71bc7243864ba09381cc78e /src/listing.rs
parentFix parse_auth to make it RFC-compliant + updated comments (diff)
parentRevert "Bump actix from 0.7.9 to 0.8.0" (diff)
downloadminiserve-6d65587e85433a2dd04ff0e6ff9612ad44af6e1c.tar.gz
miniserve-6d65587e85433a2dd04ff0e6ff9612ad44af6e1c.zip
Merge branch 'master' into fix_auth
Diffstat (limited to 'src/listing.rs')
-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,