From 4058a2db72e05cb58e678c992bf2e24b2521c649 Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 21 Jun 2022 07:23:20 +0800 Subject: [PATCH] feat: add option --allow-search (#62) --- README.md | 1 + assets/index.css | 2 +- assets/index.html | 2 +- assets/index.js | 8 ++++++-- src/args.rs | 8 ++++++++ src/server.rs | 7 +++++-- tests/allow.rs | 12 ++++++++++++ tests/http.rs | 6 +++--- 8 files changed, 37 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9d34b58..9043ed5 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ OPTIONS: -A, --allow-all Allow all operations --allow-upload Allow upload files/folders --allow-delete Allow delete files/folders + --allow-search Allow search files/folders --allow-symlink Allow symlink to files/folders outside root directory --enable-cors Enable CORS, sets `Access-Control-Allow-Origin: *` --render-index Serve index.html when requesting a directory, returns 404 if not found index.html diff --git a/assets/index.css b/assets/index.css index 4cbf7ef..ab0e96c 100644 --- a/assets/index.css +++ b/assets/index.css @@ -10,7 +10,7 @@ body { } .hidden { - display: none; + display: none !important; } .head { diff --git a/assets/index.html b/assets/index.html index 8cabff5..d94c568 100644 --- a/assets/index.html +++ b/assets/index.html @@ -22,7 +22,7 @@ -