From 94944f321e09b9828101b2f5b953fd54bc2191fe Mon Sep 17 00:00:00 2001
From: Darius Auding <Darius.auding@gmx.de>
Date: Tue, 20 Jun 2023 22:22:21 +0200
Subject: [PATCH] Remove unnecessary println! and updated some of the code

Added TODO: file
---
 TODO.md                            | 9 +++++++++
 core/http/src/handlers/handlers.rs | 1 -
 core/http/src/handling/request.rs  | 2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 TODO.md

diff --git a/TODO.md b/TODO.md
new file mode 100644
index 0000000..c15fe15
--- /dev/null
+++ b/TODO.md
@@ -0,0 +1,9 @@
+1. If you collect an iterator which you don't index in, you don't need to collect it
+2. avoid temporary hashmaps
+3. rewrite POST request stuff TICK
+4. Client struct
+5. Mime-Display new implemented
+6. Remove unwraps
+7. Reusable allocations
+
+API design 3. No decisions for the caller
diff --git a/core/http/src/handlers/handlers.rs b/core/http/src/handlers/handlers.rs
index 17812fc..b0b2c19 100755
--- a/core/http/src/handlers/handlers.rs
+++ b/core/http/src/handlers/handlers.rs
@@ -61,7 +61,6 @@ pub async fn handle_connection(mut stream: TcpStream, mountpoints: Vec<MountPoin
         buffer: vec![],
     };
     if request.can_have_body() {
-        println!("{:#?}", request.headers);
         let length = if let Some(len) = request
             .headers
             .iter()
diff --git a/core/http/src/handling/request.rs b/core/http/src/handling/request.rs
index 171798a..5731425 100644
--- a/core/http/src/handling/request.rs
+++ b/core/http/src/handling/request.rs
@@ -221,7 +221,7 @@ impl Request<'_> {
                 let end_boundary = format!("{temp_bound}--\r").as_bytes().to_owned();
                 temp_bound.push('\r');
                 let boundary = temp_bound.as_bytes();
-                Request::get_multipart_data(data, boundary, &end_boundary, &mut keymap);
+                Self::get_multipart_data(data, boundary, &end_boundary, &mut keymap);
             }
             _ => {
                 return Err(ParseFormError {
-- 
GitLab