• Raphael Beer's avatar
    Fix: failing session renewals + · 1e4bc11e
    Raphael Beer authored
      Sessions are failing to renew, because used request headers
      are set on the TwitterSession instance, but never reset.
      Thus, trying to login_guest() with an outdated X-Guest-Token
      will make the activate.json request for the new token be rejected
      because of that outdated token.
    
      Solution: Reset TwitterSession._headers in renew_session()
                to just have the User-Agent value before trying to login.
    1e4bc11e
backend.py 23.6 KB