mirror of https://github.com/fafhrd91/actix-web
Update fs.rs
This commit is contained in:
parent
971f732f69
commit
f2df1836ef
|
@ -351,8 +351,7 @@ impl<C: StaticFileConfig> Responder for NamedFile<C> {
|
|||
if let Some(current_encoding) = self.encoding {
|
||||
resp.content_encoding(current_encoding);
|
||||
}
|
||||
let reader =
|
||||
{
|
||||
let reader = ChunkedReadFile {
|
||||
size: self.md.len(),
|
||||
offset: 0,
|
||||
cpu_pool: self.cpu_pool.unwrap_or_else(|| req.cpu_pool().clone()),
|
||||
|
|
Loading…
Reference in New Issue