kennethreitz/requests — pull request #1315 by reclosedev (2013-04-19 06:38:16+00:00)
Title: Don't reuse the same prepared request for all redirects

Updated #1275

Example:
```python
import requests

resp = requests.get("http://httpbin.org/redirect/4")
for r in resp.history:
print("url: {} request.url: {}".format(r.url, r.request.url))
```
Output:
```
url: http://httpbin.org/redirect/4 request.url: http://httpbin.org/redirect/4
url: http://httpbin.org/redirect/3 request.url: http://httpbin.org/get
url: http://httpbin.org/redirect/2 request.url: http://httpbin.org/get
url: http://httpbin.org/redirect/1 request.url: http://httpbin.org/get
```
Desired:
```
url: http://httpbin.org/redirect/4 request.url: http://httpbin.org/redirect/4
url: http://httpbin.org/redirect/3 request.url: http://httpbin.org/redirect/3
...
```