I believe this is caused by 8ca7a74b9e0a4c66c4408c31c1f8f285e6cadd74 as jsonify returns a new Response object with mimetype set to current_app.config['JSONIFY_MIMETYPE'] (defaults to 'application/json'). This object is then passed to make_response along with the correct content-type which ends up only extending the existing headers. Maybe use flask.json.dumps instead of flask.json.jsonify?
All responses from the Api seem to have multiple content-type headers. For example when running the minimal API example and requesting with curl:
I believe this is caused by 8ca7a74b9e0a4c66c4408c31c1f8f285e6cadd74 as
jsonify
returns a newResponse
object withmimetype
set tocurrent_app.config['JSONIFY_MIMETYPE']
(defaults to'application/json'
). This object is then passed tomake_response
along with the correct content-type which ends up only extending the existing headers. Maybe useflask.json.dumps
instead offlask.json.jsonify
?