Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Previous requests in redirect chain don't track their history #1929

Closed
alex opened this Issue · 3 comments

5 participants

@alex

Example:

>>> response = requests.get("http://djangoproject.com")
>>> response.history
(<Response [301]>, <Response [301]>)
>>> response.history[0].history
[]
>>> response.history[1].history
[]

I would have expected the first of the two items in history to have a history of its own.

@Lukasa
Collaborator

Thanks for this @alex! Assuming #1919 gets cleaned up this should be fixed by that pull request. =)

@zackw

I'm actually thinking it'll be better to do stuff in a different order, see pull request #1930, but yeah, this is definitely on my todo list.

@ContinuousFunction ContinuousFunction referenced this issue from a commit in ContinuousFunction/requests
@ContinuousFunction ContinuousFunction Tracking Previous Requests
Addresses the issue brought up here:
kennethreitz#1929
df641e7
@kennethreitz

@alex fixed!

@willingc willingc referenced this issue from a commit in willingc/requests
@ContinuousFunction ContinuousFunction Tracking Previous Requests
Addresses the issue brought up here:
kennethreitz#1929
02df28d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.