kennethreitz/requests — Issue #307: Digest Authentication in 0.7.3 versus 0.8.4
Author: mattswe
Created: 2011-12-13 19:32:57+00:00
State: open

After upgrading from 0.7.3 to 0.8.4:

A digest request such as:

```python
r = requests.get('http://app.com/sensors.json', auth=('digest', 'username', 'password'))
```

Yields:

```
matt@Jenkins:~/Development/sensor-tools$ python pollsensors.py
Traceback (most recent call last):
File "pollsensors.py", line 84, in
s = PollSensors()
File "pollsensors.py", line 12, in __init__
r = requests.get('http://app.com/sensors.json', auth=('digest', 'username', 'password'))
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 80, in get
return request('get', url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 67, in request
prefetch=prefetch
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 191, in request
r.send(prefetch=prefetch)
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 400, in send
r = self.auth(self)
TypeError: 'tuple' object is not callable
```