Skip to content

Commit 419848d

Browse files
committed
use spin's version of default_send_request_handler with client_tls_opts
Signed-off-by: Rajat Jindal <[email protected]>
1 parent 3a97ef1 commit 419848d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/trigger-http/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,12 +732,14 @@ impl OutboundWasiHttpHandler for HttpRuntimeData {
732732
}
733733
}
734734

735+
let client_tls_opts = (*data.as_ref()).client_tls_opts.clone();
736+
735737
// TODO: This is a temporary workaround to make sure that outbound task is instrumented.
736738
// Once Wasmtime gives us the ability to do the spawn ourselves we can just call .instrument
737739
// and won't have to do this workaround.
738740
let response_handle = async move {
739741
let res =
740-
wasmtime_wasi_http::types::default_send_request_handler(request, config).await;
742+
default_send_request_handler(request, config, client_tls_opts).await;
741743
if let Ok(res) = &res {
742744
tracing::Span::current()
743745
.record("http.response.status_code", res.resp.status().as_u16());

0 commit comments

Comments
 (0)