commit | 1577e94c2d29b25963acb500b49db71819b4af4f | [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 | 3990007379d738a073e0f929f8ae609205168b31 | |
parent | bdb676c45ac8d6d9b878704b3556b01f777c2341 [diff] |
Make asynchronous via tokio Change-Id: Ie6ad982044094ac39ee724f3a11deb2860d8e3f8 Reviewed-on: https://git.clicks.codes/c/Clicks/BYO/HttpServer/rust/+/258 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 6395f20..6417f51 100644 --- a/src/main.rs +++ b/src/main.rs
@@ -32,7 +32,7 @@ } else { let mut splits = line.split(":"); let key = splits.next().unwrap(); - let value = splits.next().unwrap().trim(); + let value = splits.next().unwrap_or_default(); request.insert(key.to_owned(), value.to_owned()); }