mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-17 06:19:41 +02: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 body_path = base_dir.join(response.id.clone());
|
||||||
let mut f = File::options()
|
let mut f = File::options()
|
||||||
.create(true)
|
.create(true)
|
||||||
|
.truncate(true)
|
||||||
.write(true)
|
.write(true)
|
||||||
.open(&body_path)
|
.open(&body_path)
|
||||||
.expect("Failed to open file");
|
.expect("Failed to open file");
|
||||||
|
|||||||
Reference in New Issue
Block a user