title: session auth in python
body: <p>Using session from <code>requests</code> module in python, it seems that the session sends authorization only with first request, I can't understand why this happened.</p>
  
  <pre><code>import requests
  session = requests.Session()
  session.auth = (u'user', 'test')
  session.verify = False
  response = session.get(url='https://my_url/rest/api/1.0/users')
  </code></pre>
  
  <p>If I look for this response request headers I see:</p>
  
  <pre><code>{'Authorization': 'Basic auth_data', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'User-Agent': 'python-requests/2.12.3'}
  </code></pre>
  
  <p>but if I send next request using the same or not url:</p>
  
  <pre><code>response = session.get(url='https://my_url/rest/api/1.0/users')
  </code></pre>
  
  <p>I can see that there is no auth header in request anymore:</p>
  
  <pre><code>print response.request.headers
  {'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'User-Agent': 'python-requests/2.12.3'}
  </code></pre>
  
  <p>And I'm getting 401 response because of it.</p>
  
  <p>Why is it so? Shouldn't session send auth with every request made using it?
  How can I send auth data with every request using session?</p>