mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59: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)
|
||||
.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 => {
|
||||
|
||||
Reference in New Issue
Block a user