def add_json_headers(kw):
    if 'headers' not in kw:
        kw['headers'] = {}

    headers = {'Content-type': 'application/json', 'Accept': 'application/json'}

    for header, value in headers.items():
        kw['headers'][header] = value

    return kw
dataset/ETHPy150Open RisingOak/stashy/stashy/helpers.py/add_json_headers/original