From 29b3de25b863f3b3912cf3381324502e1541ca6f Mon Sep 17 00:00:00 2001 From: marawan ragab Date: Sun, 3 May 2020 19:32:48 -0400 Subject: add zip download test --- tests/archive.rs | 5 +++++ 1 file changed, 5 insertions(+) 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()?; -- cgit v1.2.3