fix: panic on PROPFIND // (#144)

This commit is contained in:
sigoden
2022-11-10 19:28:01 +08:00
committed by GitHub
parent 604ccc6556
commit 8b4727c3a4
2 changed files with 12 additions and 1 deletions

View File

@@ -47,6 +47,13 @@ fn propfind_404(server: TestServer) -> Result<(), Error> {
Ok(())
}
#[rstest]
fn propfind_double_slash(server: TestServer) -> Result<(), Error> {
let resp = fetch!(b"PROPFIND", format!("{}/", server.url())).send()?;
assert_eq!(resp.status(), 207);
Ok(())
}
#[rstest]
fn propfind_file(server: TestServer) -> Result<(), Error> {
let resp = fetch!(b"PROPFIND", format!("{}test.html", server.url())).send()?;