File tree Expand file tree Collapse file tree
crates/taurus-core/src/runtime/functions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use crate::value::number_to_string;
1212use serde_json:: Value as JsonValue ;
1313use std:: collections:: HashMap ;
1414use 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 } ;
1616use tucana:: shared:: value:: Kind ;
1717use 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 {
You can’t perform that action at this time.
0 commit comments