Browse Source

fix: not found dir when allow_upload is false

pull/8/head
sigoden 3 years ago
parent
commit
fc090b6930
  1. 2
      src/server.rs

2
src/server.rs

@ -139,7 +139,7 @@ impl InnerService { @@ -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…
Cancel
Save