make sure we send application/json as the content-type header