fix: query dir param
This commit is contained in:
parent
0e236b61f6
commit
8258dabe4a
1 changed files with 2 additions and 2 deletions
|
@ -191,8 +191,8 @@ impl InnerService {
|
|||
self.handle_render_index(path, headers, &mut res).await?;
|
||||
} else if query == "zip" {
|
||||
self.handle_zip_dir(path, &mut res).await?;
|
||||
} else if query.starts_with("q=") {
|
||||
self.handle_query_dir(path, &query[3..], &mut res).await?;
|
||||
} else if let Some(q) = query.strip_prefix("q=") {
|
||||
self.handle_query_dir(path, q, &mut res).await?;
|
||||
} else {
|
||||
self.handle_ls_dir(path, true, &mut res).await?;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue