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