commit | 5d78333dbb45213181fe168414e972a79b58df08 | [log] [tgz] |
---|---|---|
author | Samuel Shuert <coded@clicks.codes> | Wed Jan 10 16:31:55 2024 -0500 |
committer | Samuel Shuert <coded@clicks.codes> | Thu Jan 11 21:04:54 2024 +0000 |
tree | a8a4f5406042f7c1ef2d4605c0d63b385e08590a | |
parent | b96d06c2362f322127fd563df7627f9b1e3be3de [diff] |
Make asynchronous via tokio Change-Id: Ia682995399979ce24f68d59596e9d6207a3ca3e4 Reviewed-on: https://git.clicks.codes/c/Clicks/BYO/HttpServer/rust/+/260 Reviewed-by: Samuel Shuert <coded@clicks.codes> Tested-by: Skyler Grey <minion@clicks.codes>
diff --git a/src/main.rs b/src/main.rs index 2a56fd6..6320bd7 100644 --- a/src/main.rs +++ b/src/main.rs
@@ -36,7 +36,7 @@ request.insert(key.to_owned(), value.to_owned()); } - if request.contains_key("User-Agent") { break }; + if request.get("path").unwrap() != "/user-agent" || request.contains_key("User-Agent") { break }; line_num += 1; }