mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-11 03:26:58 +02:00
Fix GraphQL introspection
This commit is contained in:
@@ -406,9 +406,9 @@ pub async fn send_http_request<R: Runtime>(
|
|||||||
let base_dir = dir.join("responses");
|
let base_dir = dir.join("responses");
|
||||||
create_dir_all(base_dir.clone()).await.expect("Failed to create responses dir");
|
create_dir_all(base_dir.clone()).await.expect("Failed to create responses dir");
|
||||||
let body_path = if response_id.is_empty() {
|
let body_path = if response_id.is_empty() {
|
||||||
base_dir.join(response_id.clone())
|
|
||||||
} else {
|
|
||||||
base_dir.join(uuid::Uuid::new_v4().to_string())
|
base_dir.join(uuid::Uuid::new_v4().to_string())
|
||||||
|
} else {
|
||||||
|
base_dir.join(response_id.clone())
|
||||||
};
|
};
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -442,6 +442,7 @@ pub async fn send_http_request<R: Runtime>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Write body to FS
|
// Write body to FS
|
||||||
|
println!("BODYPATH {body_path:?}");
|
||||||
let mut f = File::options()
|
let mut f = File::options()
|
||||||
.create(true)
|
.create(true)
|
||||||
.truncate(true)
|
.truncate(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user