mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 17:13:02 +03:00
fix: not found dir when allow_upload is false
This commit is contained in:
@@ -139,7 +139,7 @@ impl InnerService {
|
|||||||
self.handle_send_file(filepath, req.headers(), &mut res)
|
self.handle_send_file(filepath, req.headers(), &mut res)
|
||||||
.await?
|
.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?
|
self.handle_ls_dir(filepath, false, &mut res).await?
|
||||||
}
|
}
|
||||||
Method::OPTIONS => {
|
Method::OPTIONS => {
|
||||||
|
|||||||
Reference in New Issue
Block a user