fix: not found dir when allow_upload is false
This commit is contained in:
parent
19d7b36462
commit
fc090b6930
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ impl InnerService {
|
|||
self.handle_send_file(filepath, req.headers(), &mut res)
|
||||
.await?
|
||||
}
|
||||
Method::GET if is_miss && path.ends_with('/') => {
|
||||
Method::GET if allow_upload && is_miss && path.ends_with('/') => {
|
||||
self.handle_ls_dir(filepath, false, &mut res).await?
|
||||
}
|
||||
Method::OPTIONS => {
|
||||
|
|
Loading…
Reference in a new issue