Skip to content

Commit

Permalink
Replace if with when
Browse files Browse the repository at this point in the history
  • Loading branch information
svdo committed Dec 8, 2021
1 parent cfc0be3 commit 34a15b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ring-core/src/ring/middleware/content_type.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
([response request]
(content-type-response response request {}))
([response request options]
(if response
(when response
(if (get-header response "Content-Type")
response
(let [mime-type (ext-mime-type (:uri request) (:mime-types options))]
Expand Down

0 comments on commit 34a15b6

Please sign in to comment.