You can clone with
HTTPS or Subversion.
Content-Type: application/json; charset=utf-8
I would like res.json (and res.send) to leave Content-Type alone if it has already been set. Thanks. :)
+1 I'll patch tomorrow
add support for `res.json()` to retain previously defined Content-Typ…
…es. Closes #1349
res.send() already has this. thanks for the report!
Thanks! Looks like res.send calls res.json when body is an object, so I think you've fixed them both now.