backend proxy tests almost work!

This commit is contained in:
Jonathan Kelley committed 2024-02-18 09:45:27 -08:00
1 parent 14b4af4bbc
commit d732269b8f
5 files changed
+52 -51

No files matched your search

+1 -2
View File
@@ -68,7 +68,6 @@ use http::header::*;
use server_fn::error::NoCustomError;
use server_fn::error::ServerFnErrorSerde;
use std::sync::Arc;
use std::sync::RwLock;
use crate::{
prelude::*, render::SSRState, serve_config::ServeConfig, server_context::DioxusServerContext,
@@ -478,7 +477,7 @@ async fn handle_server_fns_inner(
get_local_pool().spawn_pinned(move || async move {
let (parts, body) = req.into_parts();
let req = Request::from_parts(parts.clone(), body);
let res = if let Some(mut service) =
server_fn::axum::get_server_fn_service(&path_string)