WIP: Updated multiple readmes and auto build scripts
This commit is contained in:
@@ -144,9 +144,9 @@ async fn history_logging(
|
||||
let parsed: Value = serde_json::from_str(headers_replace.as_str()).unwrap();
|
||||
let mut header_map = HeaderMap::new();
|
||||
if let Some(obj) = parsed.as_object() {
|
||||
for (key, value) in obj {
|
||||
for (_key, value) in obj {
|
||||
if let Some(v) = value.as_str() {
|
||||
let val = HeaderValue::from_str(v).unwrap();
|
||||
let val = HeaderValue::from_str(v).unwrap();
|
||||
header_map.insert(HeaderName::from_str("X-APIKey").unwrap(), val);
|
||||
}
|
||||
}
|
||||
@@ -176,7 +176,7 @@ async fn history_logging(
|
||||
.expect("Failed to retrieve response from API");
|
||||
return first_response;
|
||||
}
|
||||
Err(res) => {
|
||||
Err(_res) => {
|
||||
let failed_response: ApiResponse = ApiResponse {
|
||||
error: "Failed".to_string(),
|
||||
response: ExecHistories {
|
||||
|
||||
Reference in New Issue
Block a user