diff --git a/src/main.rs b/src/main.rs index d612efa..7be0bfc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,6 +87,7 @@ async fn card_info(card_id: web::Path) -> Result res.push_str("Card not found"), } + finish_document(&mut res); Ok(HttpResponse::Ok().insert_header(header::ContentType::html()).body(res)) }