Fix Content-Type header

The default Content-Type is text/html, but all of our endpoints return
JSON, so Content-Type is now correctly set to application/json.