mirror of
https://forge.pointfixe.fr/hubert/gitust.git
synced 2026-02-04 18:37:27 +01:00
git http fonctionne
This commit is contained in:
@@ -149,9 +149,10 @@ async fn git_proto(payload : web::Payload, web::Path((owner, reponame)): web::Pa
|
|||||||
let mut p: Child = cmd.spawn()?;
|
let mut p: Child = cmd.spawn()?;
|
||||||
//p.stdin.take().unwrap().write()
|
//p.stdin.take().unwrap().write()
|
||||||
payload.try_for_each(|bytes| {
|
payload.try_for_each(|bytes| {
|
||||||
|
// println!("{:?}", bytes);
|
||||||
p.stdin.take().unwrap().write(bytes.bytes());
|
p.stdin.take().unwrap().write(bytes.bytes());
|
||||||
future::ready(Ok(()))
|
future::ready(Ok(()))
|
||||||
});
|
}).await;
|
||||||
//io::copy(&mut req.take_payload(), &mut p.stdin.take().unwrap())?;
|
//io::copy(&mut req.take_payload(), &mut p.stdin.take().unwrap())?;
|
||||||
// Parse the headers coming out, and the pass through the rest of the
|
// Parse the headers coming out, and the pass through the rest of the
|
||||||
// process back down the stack.
|
// process back down the stack.
|
||||||
|
|||||||
Reference in New Issue
Block a user