Permalink
Browse files

Fixed an issue with content type being looked up twice

  • Loading branch information...
1 parent 8e34198 commit fcf21f2ca5a2af01cdff65ac77f3e3a7826933b6 @ncrohn ncrohn committed Jul 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/docpad.coffee
View
@@ -2547,7 +2547,7 @@ class DocPad extends EventEmitterEnhanced
# Content Type
contentType = document.get('contentTypeRendered') or document.get('contentType')
- res.contentType(contentType)
+ res.setHeader('Content-Type', contentType);
# Send
dynamic = document.get('dynamic')

0 comments on commit fcf21f2

Please sign in to comment.