fix content type
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-04-26 15:16:57 +02:00
parent 930e9e92b8
commit 2e8e3a4a63
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -173,7 +173,9 @@ fn get_post(post: &mut Option<File>, filename: String) -> Infos {
#[get("/blog/rss")] #[get("/blog/rss")]
pub async fn rss(req: HttpRequest, config: web::Data<Config>) -> impl Responder { pub async fn rss(req: HttpRequest, config: web::Data<Config>) -> impl Responder {
HttpResponse::Ok().body(build_rss( HttpResponse::Ok()
.append_header(("content-type", "application/rss+xml"))
.body(build_rss(
config.get_ref().to_owned(), config.get_ref().to_owned(),
req.connection_info().to_owned(), req.connection_info().to_owned(),
)) ))