mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-14 12:43:42 +01:00
Truncate response files
This commit is contained in:
1 parent
1585692328
commit
532edbf274
1 file changed
+1
@@ -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