commit | b96d06c2362f322127fd563df7627f9b1e3be3de | [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 | be1c2669a4a6839b4af4d02ec7ebdfbb21ed96dc | |
parent | 1577e94c2d29b25963acb500b49db71819b4af4f [diff] |
Make asynchronous via tokio Change-Id: I3491f0394258f47f11227a455ac033077cbc5237 Reviewed-on: https://git.clicks.codes/c/Clicks/BYO/HttpServer/rust/+/259 Tested-by: Skyler Grey <minion@clicks.codes> Reviewed-by: Samuel Shuert <coded@clicks.codes>
diff --git a/src/main.rs b/src/main.rs index 6417f51..2a56fd6 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_or_default(); + let value = splits.next().unwrap_or_default().trim(); request.insert(key.to_owned(), value.to_owned()); }