Truncate response files

This commit is contained in:
Gregory Schier
2023-04-14 14:15:33 -07:00
parent 1585692328
commit 532edbf274

View File

@@ -236,6 +236,7 @@ async fn actually_send_ephemeral_request(
let body_path = base_dir.join(response.id.clone());
let mut f = File::options()
.create(true)
.truncate(true)
.write(true)
.open(&body_path)
.expect("Failed to open file");