Join with the latest URL not the first one.

This commit is contained in:
Jeremy Selier
2011-08-02 18:51:21 +03:00
parent 291d4742d6
commit 5a7ec361f4
+1 -1
View File
@@ -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: