Permalink
Browse files

Added special handling for Content-Type otherwise the encoding of the…

… writer wasn't modified.
  • Loading branch information...
1 parent 30598be commit a6667a77f1a7222053824a6b568b2af568f4d953 @cgrand cgrand committed Feb 17, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/ring/jetty.clj
View
@@ -42,6 +42,9 @@
(.setHeader response key val-or-vals)
(doseq [val val-or-vals]
(.addHeader response key val))))
+ ; Some headers must be set through specific methods
+ (when-let [content-type (headers "Content-Type")]
+ (.setContentType response content-type))
; Apply the body - the method depends on the given body type.
(cond
(string? body)

0 comments on commit a6667a7

Please sign in to comment.