Instead of adding this extra attribute you should set `'application/json'` as the default `content_type` in the `JSONResponse.__init__`.