Fixed an issue with content type being looked up twice #273

Merged
merged 2 commits into from Aug 10, 2012
View
2 src/lib/docpad.coffee
@@ -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')