Send the original response url to `urlparse` rather than the `Response` object
diff --git a/requests/cookies.py b/requests/cookies.py
index 85726b0657..0415856160 100644
--- a/requests/cookies.py
+++ b/requests/cookies.py
@@ -39,7 +39,7 @@ def get_host(self):
     def get_origin_req_host(self):
         if self._r.response.history:
             r = self._r.response.history[0]
-            return urlparse(r).netloc
+            return urlparse(r.url).netloc
         else:
             return self.get_host()
 

 `urlparse` cannot handle `Response` objects, so the way this is written this code always results in an exception.
