mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-18 15:06:58 +01:00
Truncate response files
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user