Permalink
Browse files

fixed: headers can be nil

  • Loading branch information...
1 parent cfa4d4f commit 7360f793e185b354ff22e7eaa6b062ca3b8beaf2 @cgrand cgrand committed Feb 18, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ring/jetty.clj
View
2 src/ring/jetty.clj
@@ -43,7 +43,7 @@
(doseq [val val-or-vals]
(.addHeader response key val))))
; Some headers must be set through specific methods
- (when-let [content-type (headers "Content-Type")]
+ (when-let [content-type (get headers "Content-Type")]
(.setContentType response content-type))
; Apply the body - the method depends on the given body type.
(cond

0 comments on commit 7360f79

Please sign in to comment.