From 0e85492e6e95d72d6f42a61ad37d0a649922a0ef Mon Sep 17 00:00:00 2001 From: sarendsen Date: Sat, 12 Aug 2023 09:00:51 +0200 Subject: [PATCH] Update proxy.rs --- src/proxy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proxy.rs b/src/proxy.rs index fcb45d1..3252c28 100644 --- a/src/proxy.rs +++ b/src/proxy.rs @@ -106,6 +106,6 @@ where } } -pub fn default_url_rest_getter(req: &Request, _depot: &Depot) -> String { - req.uri().path_and_query().unwrap().to_string() +pub fn default_url_rest_getter(req: &Request, _depot: &Depot) -> Option { + Some(req.uri().path_and_query().unwrap().to_string()) }