From 3eb031b94e24e249cbcbcc4dc54aaa51e353d492 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 23 Mar 2014 17:02:28 -0400 Subject: [PATCH] fix rss route throwing an error --- src/blarg/routes/rss.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blarg/routes/rss.clj b/src/blarg/routes/rss.clj index 5df30d0..10cfa3f 100644 --- a/src/blarg/routes/rss.clj +++ b/src/blarg/routes/rss.clj @@ -2,7 +2,7 @@ (:use [blarg.routes.helpers] [compojure.core]) (:require [markdown.core :as md] - [noir.response :as resp] + [noir.response :refer [xml]] [clj-rss.core :as rss] [clj-time.core] [clj-time.coerce] @@ -16,7 +16,7 @@ (let [channel {:title rss-title :link rss-site-url :description rss-description}] - (resp/content-type "text/xml" + (xml (apply (partial rss/channel-xml channel) (->> (posts/list-posts false 10)