aboutsummaryrefslogtreecommitdiff
path: root/src/modules/blog/module.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-03-30 20:20:27 -0700
committerFuwn <[email protected]>2023-03-30 20:20:27 -0700
commit9fc83f8d4fa360a2eb9812880e1db0fba6d4bad8 (patch)
treea9f566fb606de56334f4be9390d48ad8912bd5e3 /src/modules/blog/module.rs
parentfeat(translation): add translation header (diff)
downloadlocus-9fc83f8d4fa360a2eb9812880e1db0fba6d4bad8.tar.xz
locus-9fc83f8d4fa360a2eb9812880e1db0fba6d4bad8.zip
deps(windmark): bump 0.2.1 -> 0.2.2
Diffstat (limited to 'src/modules/blog/module.rs')
-rw-r--r--src/modules/blog/module.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/blog/module.rs b/src/modules/blog/module.rs
index e2ac456..dbdf7ed 100644
--- a/src/modules/blog/module.rs
+++ b/src/modules/blog/module.rs
@@ -322,10 +322,9 @@ pub fn module(router: &mut windmark::Router) {
&format!("/blog/{}.xml", fixed_blog_name),
&format!("Really Simple Syndication for the {} blog", name),
Box::new(move |_| {
- windmark::Response::SuccessWithMime(
- xml.to_string(),
- "text/rss+xml".to_string(),
- )
+ windmark::Response::success(xml.to_string())
+ .with_mime("text/rss+xml")
+ .clone()
}),
);
}