diff options
author | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-03-19 19:08:26 +0000 |
---|---|---|
committer | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-03-19 19:08:26 +0000 |
commit | 6a3db431ef0eb0d235bf5ae319076b2ce229c583 (patch) | |
tree | c51c8960102c4cb82153abad1281c2c943315ecc | |
parent | Added missing padding on download div (diff) | |
download | miniserve-6a3db431ef0eb0d235bf5ae319076b2ce229c583.tar.gz miniserve-6a3db431ef0eb0d235bf5ae319076b2ce229c583.zip |
Removed Content-Length
Diffstat (limited to '')
-rw-r--r-- | src/listing.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/listing.rs b/src/listing.rs index ed3b63d..c4daf88 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -238,7 +238,6 @@ pub fn directory_listing<S>( log::info!("{file} successfully created !", file = &filename); Ok(HttpResponse::Ok() .content_type(compression_method.content_type()) - .content_length(content.len() as u64) .content_encoding(compression_method.content_encoding()) .header("Content-Transfer-Encoding", "binary") .header( |