

def unquote_header_value(value, is_filename=False):
    'Unquotes a header value.  (Reversal of :func:`quote_header_value`).\n    This does not use the real unquoting but what browsers are actually\n    using for quoting.\n\n    .. versionadded:: 0.5\n\n    :param value: the header value to unquote.\n    '
    if (value and (value[0] == value[(- 1)] == '"')):
        value = value[1:(- 1)]
        if ((not is_filename) or (value[:2] != '\\\\')):
            return value.replace('\\\\', '\\').replace('\\"', '"')
    return value

dataset/ETHPy150Open Eforcers/gae-flask-todo/lib/werkzeug/http.py unquote_header_value/original