]> OzVa Git service - ozva-cloud/commitdiff
chore: trivial updates
authorsigoden <sigoden@gmail.com>
Sun, 26 Nov 2023 07:03:51 +0000 (15:03 +0800)
committersigoden <sigoden@gmail.com>
Sun, 26 Nov 2023 07:04:12 +0000 (15:04 +0800)
README.md
tests/http_logger.rs

index 6eaf9b6560790ba2a2adb68266582cb08618ad8f..bdf1d059e9f601247b29acbfe3d2e28eeb0ccaac 100644 (file)
--- a/README.md
+++ b/README.md
@@ -186,9 +186,9 @@ curl -X MOVE https://127.0.0.1:5000/path -H "Destination: https://127.0.0.1:5000
 List/search directory contents
 
 ```
-curl http://127.0.0.1:5000?simple                 # output names only, just like `ls -1`
+curl http://127.0.0.1:5000?q=Dockerfile           # search for files, similar to `find -name Dockerfile`
+curl http://127.0.0.1:5000?simple                 # output names only, similar to `ls -1`
 curl http://127.0.0.1:5000?json                   # output paths in json format
-curl http://127.0.0.1:5000?q=Dockerfile&simple    # search for files, just like `find -name Dockerfile`
 ```
 
 With authorization
index a504f59fe508bcbc4f853351101710668a7164e1..a3a2da1e58cf8b6048241ed2b18a0d6d72e4996a 100644 (file)
@@ -74,5 +74,7 @@ fn no_log(tmpdir: TempDir, port: u16, #[case] args: &[&str]) -> Result<(), Error
     let output = std::str::from_utf8(&buf[0..buf_len])?;
 
     assert_eq!(output.lines().last().unwrap(), "");
+
+    child.kill()?;
     Ok(())
 }