bevry/docpad — pull request #273 by ncrohn (2012-07-21 00:21:58+00:00)
Title: Fixed an issue with content type being looked up twice

There was a problem with the content type being set incorrectly after being looked up twice.

Initially looked up here: https://github.com/bevry/docpad/blob/master/src/lib/models/document.coffee#L363

Then looked up again from running: https://github.com/bevry/docpad/blob/master/src/lib/docpad.coffee#L2550

The contentType method provided by Express just calls mime.lookup and fails on files like JavaScript which the mime type doesn't match on application/javascript.