Permalink
Browse files

Add render-edn to http, bump to 0.6.29

  • Loading branch information...
1 parent 567279d commit 2f6ec842f3d08c64a637888dac92c76235fdd3d9 @zk committed Nov 5, 2013
Showing with 6 additions and 1 deletion.
  1. +1 −1 project.clj
  2. +5 −0 src/clj/nsfw/http.clj
View
@@ -1,4 +1,4 @@
-(defproject nsfw "0.6.28"
+(defproject nsfw "0.6.29"
:description "No Such Framework -- Experimental"
:dependencies [[org.clojure/clojure "1.5.1"]
[clj-stacktrace "0.2.5"]
View
@@ -71,3 +71,8 @@
(let [resp (h r)]
(when resp
(vary-meta resp assoc k v)))))
+
+(defn render-edn [body]
+ {:headers {"Content-Type" "application/edn;encoding=utf-8"}
+ :status 200
+ :body (pr-str body)})

0 comments on commit 2f6ec84

Please sign in to comment.