From 7f4978140e0979d50e3478f835541a3e85adc78f Mon Sep 17 00:00:00 2001 From: Hubert Date: Thu, 8 Jul 2021 07:03:27 +0200 Subject: [PATCH] git http fonctionne --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e8f8b35..0eba8a7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -149,9 +149,10 @@ async fn git_proto(payload : web::Payload, web::Path((owner, reponame)): web::Pa let mut p: Child = cmd.spawn()?; //p.stdin.take().unwrap().write() payload.try_for_each(|bytes| { + // println!("{:?}", bytes); p.stdin.take().unwrap().write(bytes.bytes()); future::ready(Ok(())) - }); + }).await; //io::copy(&mut req.take_payload(), &mut p.stdin.take().unwrap())?; // Parse the headers coming out, and the pass through the rest of the // process back down the stack.