Fork me on GitHub

@franco.gasperino It's the io.pedestal.http.impl.servlet-interceptor/WriteableBody protocol Once your body is a clojure.lang.IPersistentCollection (a map? ), the protocol will be implemented as

(default-content-type [_] "application/edn")
(write-body-to-stream [o output-stream]
    (let [writer (OutputStreamWriter. output-stream)]
      (binding [*out* writer]
        (pr o))
      (.flush writer)))
It means, it there is no Content-Type on the response headers, it will use "application/edn" There is no default behavior in pedestal that "check the response header and use a custom write method" for the body