

def remove_entity_headers(headers, allowed=('expires', 'content-location')):
    'Remove all entity headers from a list or :class:`Headers` object.  This\n    operation works in-place.  `Expires` and `Content-Location` headers are\n    by default not removed.  The reason for this is :rfc:`2616` section\n    10.3.5 which specifies some entity headers that should be sent.\n\n    .. versionchanged:: 0.5\n       added `allowed` parameter.\n\n    :param headers: a list or :class:`Headers` object.\n    :param allowed: a list of headers that should still be allowed even though\n                    they are entity headers.\n    '
    allowed = set((x.lower() for x in allowed))
    headers[:] = [(key, value) for (key, value) in headers if ((not is_entity_header(key)) or (key.lower() in value))]

dataset/ETHPy150Open Eforcers/gae-flask-todo/lib/werkzeug/http.py remove_entity_headers/VarMisuse@73/287 `allowed`->`value`