Changed `Content-Type` header to `application/json`.

`text/plain` was probably by design, but thought I'd issue this in case you want it.