diff options
author | marawan ragab <marawan31@gmail.com> | 2020-05-03 23:32:48 +0000 |
---|---|---|
committer | marawan ragab <marawan31@gmail.com> | 2020-05-03 23:32:48 +0000 |
commit | 29b3de25b863f3b3912cf3381324502e1541ca6f (patch) | |
tree | f3b989546cb2105be71ed2fd654b9806ed9d6145 /tests/archive.rs | |
parent | Add zip download functionality for windows users (diff) | |
download | miniserve-29b3de25b863f3b3912cf3381324502e1541ca6f.tar.gz miniserve-29b3de25b863f3b3912cf3381324502e1541ca6f.zip |
add zip download test
Diffstat (limited to '')
-rw-r--r-- | tests/archive.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/archive.rs b/tests/archive.rs index e4cca81..37da0e3 100644 --- a/tests/archive.rs +++ b/tests/archive.rs @@ -42,6 +42,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()?; |