diff --git a/src/main.rs b/src/main.rs index 03112f6..8905b43 100644 --- a/src/main.rs +++ b/src/main.rs @@ -175,7 +175,11 @@ async fn rss() -> Result { .items(posts) .build(); - return Ok(channel.to_string()); + return Ok(Response::builder() + .header("content-type", "application/rss+xml") + .status(StatusCode::OK) + .body(Full::from(channel.to_string())) + .unwrap()); } fn header(page_title: &str) -> Markup { @@ -328,7 +332,6 @@ async fn blog_post(Path(post): Path) -> Result