Skip to content

Commit

Permalink
Fix #30
Browse files Browse the repository at this point in the history
  • Loading branch information
verma committed Apr 9, 2014
1 parent 20d43ed commit 191098c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dakait/handler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@

(defn as-json
([]
(as-json nil))
(as-json {}))
([m]
{ :status 200
:headers { "Content-Type" "application/json; charset=utf-8" }
:body (when-not (nil? m) (json/write-str m)) }))
:body (json/write-str m) }))

(defn as-json-error
([code error-message]
Expand Down

0 comments on commit 191098c

Please sign in to comment.