refactor: trival changes (#41)

- refactor status code
- log remote addr and time in miliseconds
This commit is contained in:
sigoden
2022-06-15 19:57:28 +08:00
committed by GitHub
parent 12aafa00d8
commit 3c4bb77023
4 changed files with 75 additions and 66 deletions

View File

@@ -134,7 +134,7 @@ fn options_dir(server: TestServer) -> Result<(), Error> {
resp.headers().get("allow").unwrap(),
"GET,HEAD,PUT,OPTIONS,DELETE,PROPFIND,COPY,MOVE"
);
assert_eq!(resp.headers().get("dav").unwrap(), "1");
assert_eq!(resp.headers().get("dav").unwrap(), "1,2");
Ok(())
}