From: Jeremy Selier Date: Tue, 2 Aug 2011 15:51:21 +0000 (+0300) Subject: Join with the latest URL not the first one. X-Git-Tag: v0.6.0~87^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a7ec361f4bf093e251d4953bcf6a432717cf690;p=services%2Fpython-requests.git Join with the latest URL not the first one. --- diff --git a/requests/models.py b/requests/models.py index 55a6a48..5195431 100644 --- a/requests/models.py +++ b/requests/models.py @@ -197,7 +197,7 @@ class Request(object): # Facilitate non-RFC2616-compliant 'location' headers # (e.g. '/path/to/resource' instead of 'http://domain.tld/path/to/resource') - url = urljoin(self.url, url) + url = urljoin(r.url, url) # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4 if r.status_code is 303: