Skip to content

Commit

Permalink
back to default starter
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr committed Dec 29, 2023
1 parent b231208 commit f345610
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<impl IntoResponse> {
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")
Expand Down

0 comments on commit f345610

Please sign in to comment.