From 300cc4f54c007e3fa37bf29c67e57121820f6727 Mon Sep 17 00:00:00 2001 From: benwis Date: Tue, 17 Jan 2023 09:27:09 -0800 Subject: [PATCH] Actually Do It --- integrations/axum/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/axum/src/lib.rs b/integrations/axum/src/lib.rs index 83ba2f938..63613dbdf 100644 --- a/integrations/axum/src/lib.rs +++ b/integrations/axum/src/lib.rs @@ -323,7 +323,7 @@ where // Need to get the path and query string of the Request // For reasons that escape me, if the incoming URI protocol is https, it provides the absolute URI // if http, it returns a relative path. Adding .path() seems to make it explicitly return the relative uri - let path = req.uri().path_and_query(); + let path = req.uri().path_and_query().unwrap().as_str(); let full_path = format!("http://leptos.dev{path}");