@app.route('/response-headers')
def response_headers(request):
    headers = Headers(request.args.to_dict())
    response = jsonify(headers)

    while True:
        content_len_shown = response.headers['Content-Length']
        d = {}
        for key in response.headers.keys():
            value = response.headers.get_all(key)
            if len(value) == 1:
                value = value[0]
            d[key] = value
        response = jsonify(d)
        for key, value in headers.to_list():
            response.headers.add(key, value)
        if response.headers['Content-Length'] == content_len_shown:
            break
    return response
Use this function at the end of test_main() whenever sub-processes
dataset/ETHPy150Open mozillazg/bustard/tests/httpbin/core.py/response_headers--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/test/support.py/reap_children