mirror of
https://forge.pointfixe.fr/hubert/gitust.git
synced 2026-02-04 12:27:27 +01:00
save
This commit is contained in:
@@ -204,8 +204,8 @@ async fn git_proto(payload : web::Payload, web::Path((owner, reponame)): web::Pa
|
||||
println!("Write body...");
|
||||
//let mut body = Vec::new();
|
||||
//rdr.bytes()
|
||||
let mut buff : [u8; 1024] = [0; 1024];
|
||||
let response = builder.streaming(stream::repeat_with(|| {
|
||||
let mut buff : [u8; 1024] = [0; 1024];
|
||||
match rdr.read(&mut buff[..]) {
|
||||
Ok(l) => {Ok(Bytes::copy_from_slice(&buff[0..l]))}
|
||||
Err(e) => {Err(e)}
|
||||
|
||||
Reference in New Issue
Block a user