diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000000000000000000000000000000000000..c15fe15492ef30d3296d9d2eb2782ca7f4d04718 --- /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 17812fc16ccef1b1b0c42edfc231c4626620cf29..b0b2c190d699bee9faa4e36f58da5128105a3065 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 171798a2f9fed838a2e83d47b415a0a9abc9f861..5731425aa199b5f93eb95d62ea7823ae7716d1fc 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 {