Skip to content
Myr

Send the original response url to `urlparse` rather than the `Response` object. `urlparse` cannot handle `Response` objects.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ig0774 · committed by ig0774 · parent 10d2398 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/cookies.py+1 added-1 removed
37 unmodified lines
3839 def get_origin_req_host(self):40 if self._r.response.history:41 r = self._r.response.history[0]42 return urlparse(r).netloc42 return urlparse(r.url).netloc43 else:44 return self.get_host()4546 def get_full_url(self):
317 unmodified lines