def get_encoding_from_headers(headers):

    content_type = headers.get('content-type')

    if not content_type:
        return None

    content_type, params = cgi.parse_header(content_type)

    if 'charset' in params:
        return params['charset'].strip("'\"")
Returns the keyword arguments for instanciating the forms.
dataset/ETHPy150Open bububa/pyTOP/pyTOP/packages/requests/utils.py/get_encoding_from_headers--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/connect_core/utils/views.py/MultipleFormsMixin.get_form_kwargs