Skip to content

Commit 68ba3ba

Browse files
committed
fix: made cargo build
1 parent c18e7cf commit 68ba3ba

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • crates/taurus-core/src/runtime/functions

crates/taurus-core/src/runtime/functions/http.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::value::number_to_string;
1212
use serde_json::Value as JsonValue;
1313
use std::collections::HashMap;
1414
use std::io::Read;
15-
use tucana::shared::helper::value::{from_json_value, to_json_value, ToValue};
15+
use tucana::shared::helper::value::{ToValue, from_json_value, to_json_value};
1616
use tucana::shared::value::Kind;
1717
use tucana::shared::{Struct, Value};
1818

@@ -188,7 +188,12 @@ fn send_request(
188188

189189
let mut fields = HashMap::new();
190190
fields.insert("http_status_code".to_string(), status_code.to_value());
191-
fields.insert("headers".to_string(), response_headers.to_value());
191+
fields.insert(
192+
"headers".to_string(),
193+
Value {
194+
kind: Some(Kind::StructValue(response_headers)),
195+
},
196+
);
192197
fields.insert("payload".to_string(), response_payload);
193198

194199
Signal::Success(Value {

0 commit comments

Comments
 (0)