mirror of
https://github.com/actix/actix-web.git
synced 2024-12-22 08:07:18 +00:00
fix directory entry path
This commit is contained in:
parent
a9c71b2894
commit
781282897a
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ impl Responder for Directory {
|
||||||
for entry in self.path.read_dir()? {
|
for entry in self.path.read_dir()? {
|
||||||
if self.can_list(&entry) {
|
if self.can_list(&entry) {
|
||||||
let entry = entry.unwrap();
|
let entry = entry.unwrap();
|
||||||
let p = match entry.path().strip_prefix(&self.base) {
|
let p = match entry.path().strip_prefix(&self.path) {
|
||||||
Ok(p) => base.join(p),
|
Ok(p) => base.join(p),
|
||||||
Err(_) => continue
|
Err(_) => continue
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue