diff options
author | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-04-13 21:18:55 +0000 |
---|---|---|
committer | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-04-13 21:18:55 +0000 |
commit | 81d045baa85aca53e915ebfdcf629036d2a30971 (patch) | |
tree | e181b4bc819d0cc755e6fcbc46b71f36efb0fd41 /src/listing.rs | |
parent | Update README.md (diff) | |
download | miniserve-81d045baa85aca53e915ebfdcf629036d2a30971.tar.gz miniserve-81d045baa85aca53e915ebfdcf629036d2a30971.zip |
Fix issue #63
Diffstat (limited to '')
-rw-r--r-- | src/listing.rs | 3 |
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, |