Browse Source

fix: query dir param

pull/32/head
sigoden 3 years ago
parent
commit
8258dabe4a
  1. 4
      src/server.rs

4
src/server.rs

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