Get more axum stuff upgraded to 0.7

This commit is contained in:
Jonathan Kelley committed 2024-02-15 18:59:57 -08:00
1 parent 214a907adc
commit 64a321eacc
25 files changed
+202 -193

No files matched your search

+4 -1
View File
@@ -19,6 +19,7 @@ use axum::{
routing::{get, get_service},
Router,
};
use axum_extra::TypedHeader;
use axum_server::tls_rustls::RustlsConfig;
use dioxus_cli_config::CrateConfig;
use dioxus_cli_config::WebHttpsConfig;
@@ -298,7 +299,9 @@ async fn setup_router(
.body(body)
.unwrap()
} else {
response.map(|body| body.into())
response.map(|body| body.try_into().unwrap())
// response.into_body()
// response.map(|body| body.into())
};
let headers = response.headers_mut();
headers.insert(