mirror of https://github.com/fafhrd91/actix-web
fix path error
This commit is contained in:
parent
02e4bef723
commit
219b332733
|
|
@ -181,8 +181,8 @@ impl Service<ServiceRequest> for FilesService {
|
||||||
for directory in &this.directories {
|
for directory in &this.directories {
|
||||||
let path = directory.join(&path_on_disk);
|
let path = directory.join(&path_on_disk);
|
||||||
match path.canonicalize() {
|
match path.canonicalize() {
|
||||||
Ok(canonical_path) => {
|
Ok(_) => {
|
||||||
found_path = Some(canonical_path);
|
found_path = Some(path);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue