from flask import request, json, current_app


def jsonify(data, status=200, headers=None):
    if not isinstance(data, (dict, list)):
        raise TypeError

    # Determine JSON indentation
    indent = None
    if current_app.config['JSONIFY_PRETTYPRINT_REGULAR'] and not request.is_xhr:
        indent = 2

    content = json.dumps(data, indent=indent)

    return current_app.response_class(
        content, mimetype='application/json', headers=headers), status

@@ -72,22 +72,8 @@
 =200
-, headers=None
 ):%0A 
@@ -376,25 +376,16 @@
 e_class(
-%0A        
 content,
@@ -416,25 +416,8 @@
 son'
-, headers=headers
 ), s

Remove unused "header" parameter