From f345610ec84a511ff17cbf1e04bb1e694863cfda Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Fri, 29 Dec 2023 13:38:08 -0600 Subject: [PATCH] back to default starter --- src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fe1363e..c77cc8f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,10 +4,7 @@ use spin_sdk::http_component; /// A simple Spin HTTP component. #[http_component] fn handle_hello_world_rust_spin_app(req: Request) -> anyhow::Result { - let url = req - .header("spin-full-url") - .map_or("", |v| v.as_str().unwrap_or_default()); - println!("Handling request to {:?}", url); + println!("Handling request to {:?}", req.header("spin-full-url")); Ok(Response::builder() .status(200) .header("content-type", "text/plain")