def reset_cis_session(session):
    """
    The current session might be in a bad state with wrong headers.
    Let's attempt to update the session back to the initial state.
    :param session:
    :return:
    """
    session.headers.clear()
    session.headers.update(
        {
            "X-DC-DEVKEY": current_app.config["DIGICERT_CIS_API_KEY"],
            "Content-Type": "application/json",
        }
    )

    The current session might be in a bad state with wrong headers.
    Let's attempt to update the session back to the initial state.
    :param session:
    :return:
    
lemur/plugins/lemur_digicert/plugin.py