diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2020-05-14 03:47:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 03:47:54 +0000 |
commit | e1ed1a807ca65cea8b19bf4d12df12aa45c9826a (patch) | |
tree | 63e9c44cff4e896a948111ed6330270cd3101111 /tests | |
parent | Merge pull request #301 from svenstaro/dependabot/cargo/serde-1.0.110 (diff) | |
parent | rename variables correctly (diff) | |
download | miniserve-e1ed1a807ca65cea8b19bf4d12df12aa45c9826a.tar.gz miniserve-e1ed1a807ca65cea8b19bf4d12df12aa45c9826a.zip |
Merge pull request #297 from marawan31/add-zip-download
Add zip download functionality for windows users
Diffstat (limited to 'tests')
-rw-r--r-- | tests/archive.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/archive.rs b/tests/archive.rs index e4cca81..c170bc3 100644 --- a/tests/archive.rs +++ b/tests/archive.rs @@ -17,7 +17,6 @@ fn archives_are_disabled(tmpdir: TempDir, port: u16) -> Result<(), Error> { .arg(tmpdir.path()) .arg("-p") .arg(port.to_string()) - .arg("-r") .stdout(Stdio::null()) .spawn()?; @@ -42,6 +41,11 @@ fn archives_are_disabled(tmpdir: TempDir, port: u16) -> Result<(), Error> { .status(), StatusCode::FORBIDDEN ); + assert_eq!( + reqwest::blocking::get(format!("http://localhost:{}/?download=zip", port).as_str())? + .status(), + StatusCode::FORBIDDEN + ); child.kill()?; |