From fad403c33b8f10aa8f15d2d7864c378ffc1dca5a Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Thu, 7 Mar 2019 03:27:48 +0100 Subject: Remove note in README about sort order --- README.md | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/README.md b/README.md index 73dba75..c30007c 100644 --- a/README.md +++ b/README.md @@ -37,34 +37,6 @@ Sometimes this is just a more practical and quick way than doing things properly miniserve -i 192.168.0.1 -i 10.13.37.10 -i ::1 /tmp/myshare -### Sort files for easier navigation - miniserve --sort=natural /tmp/myshare # (default behaviour) - # 1/ - # 2/ - # 3 - # 11 - - miniserve --sort=alpha /tmp/myshare - # 1/ - # 11 - # 2/ - # 3 - - miniserve --sort=dirsfirst /tmp/myshare - # 1/ - # 2/ - # 11 - # 3 - - miniserve --sort=date /tmp/myshare - # list files in chronological order (most recent files on top of the list) - - miniserve --reverse /tmp/myshare - # 11 - # 3 - # 2/ - # 1/ - ## Features - Easy to use -- cgit v1.2.3 From 38d71f05f05aa27167928a548ac8c77d941ebc62 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 8 Mar 2019 09:07:01 +0100 Subject: Send 401 instead of 403 on incorrect password (fixes #47) --- src/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.rs b/src/auth.rs index 7b72b21..e8600fb 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -59,7 +59,7 @@ impl Middleware for Auth { if auth_req.username != required_auth.username || auth_req.password != required_auth.password { - let new_resp = HttpResponse::Forbidden().finish(); + let new_resp = HttpResponse::Unauthorized().finish(); return Ok(Response::Done(new_resp)); } } else { -- cgit v1.2.3 From 180c63905b10e8eb6507a4fe0fac802b4c8e022c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 11 Mar 2019 04:18:18 +0000 Subject: Bump structopt from 0.2.14 to 0.2.15 Bumps [structopt](https://github.com/TeXitoi/structopt) from 0.2.14 to 0.2.15. - [Release notes](https://github.com/TeXitoi/structopt/releases) - [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md) - [Commits](https://github.com/TeXitoi/structopt/compare/v0.2.14...v0.2.15) Signed-off-by: dependabot[bot] --- Cargo.lock | 12 ++++++------ Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 36da52f..5cc26d2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -762,7 +762,7 @@ dependencies = [ "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.89 (registry+https://github.com/rust-lang/crates.io-index)", "simplelog 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", - "structopt 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", + "structopt 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)", "yansi 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1304,16 +1304,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "structopt" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)", - "structopt-derive 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", + "structopt-derive 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "structopt-derive" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1978,8 +1978,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum stable_deref_trait 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "dba1a27d3efae4351c8051072d619e3ade2820635c3958d826bfea39d59b54c8" "checksum string 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "b639411d0b9c738748b5397d5ceba08e648f4f1992231aa859af1a017f31f60b" "checksum strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4f380125926a99e52bc279241539c018323fab05ad6368b56f93d9369ff550" -"checksum structopt 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)" = "670ad348dc73012fcf78c71f06f9d942232cdd4c859d4b6975e27836c3efc0c3" -"checksum structopt-derive 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)" = "ef98172b1a00b0bec738508d3726540edcbd186d50dfd326f2b1febbb3559f04" +"checksum structopt 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)" = "3d0760c312538987d363c36c42339b55f5ee176ea8808bbe4543d484a291c8d1" +"checksum structopt-derive 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)" = "528aeb7351d042e6ffbc2a6fb76a86f9b622fdf7c25932798e7a82cb03bc94c6" "checksum syn 0.15.26 (registry+https://github.com/rust-lang/crates.io-index)" = "f92e629aa1d9c827b2bb8297046c1ccffc57c99b947a680d3ccff1f136a3bee9" "checksum synstructure 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "73687139bf99285483c96ac0add482c3776528beac1d97d444f6e91f203a2015" "checksum term 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5e6b677dd1e8214ea1ef4297f85dbcbed8e8cdddb561040cc998ca2551c37561" diff --git a/Cargo.toml b/Cargo.toml index f98e802..54dba89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ htmlescape = "0.3.1" bytesize = "1.0.0" nanoid = "0.2.0" alphanumeric-sort = "1.0.6" -structopt = "0.2.14" +structopt = "0.2.15" chrono = "0.4.6" chrono-humanize = "0.0.11" maud = { version = "0.20.0", features = ["actix-web"] } -- cgit v1.2.3