added check for already existing content-type header

The content-type is forced so if you set the content-type, including charset, it would be overwritten.

A simple check if the content-type is set prevents this.
@sclausen Should this be `if (! res.getHeader("Content-Type")) {`?