mirror of
https://github.com/actix/actix-website
synced 2024-11-23 16:31:08 +01:00
Correct custom NamedFile usage
This commit is contained in:
parent
b15d1a1437
commit
032afec8d8
@ -89,7 +89,7 @@ impl StaticFileConfig for MyConfig {
|
||||
}
|
||||
}
|
||||
|
||||
fn index(req: &HttpRequest) -> Result<NamedFile> {
|
||||
fn index(req: &HttpRequest) -> Result<NamedFile<MyConfig>> {
|
||||
let path: PathBuf = req.match_info().query("tail")?;
|
||||
Ok(NamedFile::open_with_config(path, MyConfig)?)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user