def METHOD_NAME(reply):
    """Parse a Content-Type header.
    The parsing done here is very cheap, as we really only want to get the
    Mimetype. Parameters aren't parsed specially.
    Args:
        reply: The QNetworkReply to handle.
    Return:
        A [mimetype, rest] list, or [None, None] if unset.
        Rest can be None.
    """
    content_type = reply.header(QNetworkRequest.KnownHeaders.ContentTypeHeader)
    if content_type is None:
        return [None, None]
    if ';' in content_type:
        ret = content_type.split(';', maxsplit=1)
    else:
        ret = [content_type, None]
    ret[0] = ret[0].strip()
    return ret