           @logMessage err
           @respondWithServerError res
           return
-        res.setHeader 'Content-Type', 'text/html; charset=utf-8'
+        res.set 'Content-Type', 'text/html; charset=utf-8'
         res.send html
 
     # Archives for a year (e.g. /2013/)

        @logMessage err
        @respondWithServerError res
        return
      res.setHeader 'Content-Type', 'text/html; charset=utf-8'
      res.send html

  # Show the most recent entry on homepage
  serveMostRecentEntry: (req, res) ->
    file = @recentInfo.recentFiles[0]
    if not file?
      res.setHeader 'Content-Type', 'text/plain; charset=utf-8'
      # Empty content message
      res.send """
      This is the place where your content will appear.

      </entry>
        """
      buf += "\n</feed>\n"
      res.set 'Content-Type', 'text/xml; charset=utf-8'
      res.send buf

    # Homepage
