Skip to content

Commit

Permalink
:content-type is deprecated
Browse files Browse the repository at this point in the history
In `[ring/ring-core "1.4.0-RC1"]` this key is no longer in the request map.
  • Loading branch information
muhuk committed Jun 12, 2015
1 parent d5cd3f4 commit 1bb1083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ring/middleware/edn.clj
Expand Up @@ -3,7 +3,7 @@

(defn- edn-request?
[req]
(if-let [^String type (:content-type req)]
(if-let [^String type (get-in req [:headers "content-type"] "")]
(not (empty? (re-find #"^application/(vnd.+)?edn" type)))))

(defprotocol EdnRead
Expand Down

0 comments on commit 1bb1083

Please sign in to comment.