Skip to content

Commit

Permalink
bencode booleans as true/false strings
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoduncan committed Feb 23, 2013
1 parent 8f02e91 commit 346a4e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nrepl-middleware/src/ritz/nrepl/middleware.clj
Expand Up @@ -5,6 +5,10 @@

(defmethod transform-value :default [v] v)

(defmethod transform-value java.lang.Boolean
[v]
(if v "true" "false"))

(defmethod transform-value clojure.lang.PersistentVector
[v]
(list* (map transform-value v)))
Expand Down

0 comments on commit 346a4e8

Please sign in to comment.