Skip to content
Myr

fix usage of compat.urlparse

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

(this code path appears to have been exercised only by secure cookies)

authored by Shivaram Lingamneni · committed by Shivaram Lingamneni · parent 492bda1 · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:requests/cookies.py+3 added-3 removed
29 unmodified lines
30 self._r = request31 self._new_headers = {}3233 def get_type(self):34 return urlparse.urlparse(self._r.full_url).scheme34 return urlparse(self._r.full_url).scheme3536 def get_host(self):37 return urlparse.urlparse(self._r.full_url).netloc37 return urlparse(self._r.full_url).netloc3839 def get_origin_req_host(self):40 if self._r.response.history:41 r = self._r.response.history[0]42 return urlparse.urlparse(r).netloc42 return urlparse(r).netloc43 else:44 return self.get_host()4546 def get_full_url(self):
212 unmodified lines