Update 'src/main.rs'

Add more output for debugging purposes.
This commit is contained in:
Thelie 2023-07-05 23:24:37 +02:00
parent d17087182c
commit d467bb7c64

View file

@ -220,6 +220,8 @@ async fn echo(req: Request<Body>) -> Result<Response<Body>> {
let domain = split_path[1];
let token = split_path[2];
println!("Got the parameters domain: {} and token: {}", domain, token);
response = generate_feed(response, domain, token).await?;
} else {
*response.body_mut() = Body::from("<h1>You need to go to `/domain/token!`</h1>");