Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… writer wasn't modified.
  • Loading branch information...
commit a6667a77f1a7222053824a6b568b2af568f4d953 1 parent 30598be
@cgrand cgrand authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/ring/jetty.clj
View
3  src/ring/jetty.clj
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.