title: node.js, express.js - res.render does not work in safari, shows html source as plain text
body: <p>I try to res.render('mytemplate', data), works fine in all browsers except Safari (incl. iOS), Safari does not render and shows html in plain text, also some header info:</p>
  
  <pre><code>HTTP/1.1 success unknown
  X-Powered-By: Express
  content-type: text/html
  Content-Length: 4489
  Set-Cookie: connect.sid=pSY62z68tPe4TnQBLuhBPaVZ.Hd7o0jSkf%2F4AztPcwxhwoWgeqbIggMBrRfRHV3L7G0g; path=/; expires=Tue, 14 Feb 2012 05:27:49 GMT; httpOnly
  Connection: keep-alive
  
  &lt;!doctype html&gt;
  &lt;!--[if lt IE 7]&gt;
  &lt;html class="no-js ie6 oldie" lang="en"&gt;&lt;![endif]--&gt;
  
      ...
  
  &lt;/html&gt;
  </code></pre>
  
  <p>This is how I do the rendering:</p>
  
  <pre><code>res.setHeader('content-type', 'text/html');
  res.render('myTemplate', data);
  </code></pre>
  
  <p>Any ideas?</p>