def _parse_value_in_header(header, name):
    value = header.split("%s=" % name)[1]
    posend = value.find(";")
    if posend == -1:
        return value
    else:
        return value[:posend]
For parsing complex header values splitted by ;
dataset/ETHPy150Open conan-io/conan/conans/client/rest/multipart_decode.py/_parse_value_in_header