Fix for reuse connections

This commit is contained in:
2024-05-13 12:54:42 +02:00
parent eae46c8225
commit a07f3221b1
3 changed files with 8 additions and 8 deletions

View File

@@ -46,12 +46,7 @@ pub async fn response_to_tempfile(
data_size += data.len();
match tmp_file.write(data.chunk()) {
Ok(_) => (),
Err(err) => {
return Err(Box::new(err));
}
}
tmp_file.write_all(data.chunk())?;
}
tmp_file.seek(SeekFrom::Start(0)).unwrap();