Skip to content
Myr

Comment our reasonsing for the special cases

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

authored by Ian Cordasco · committed by Ian Cordasco · parent 0bb8be0 · Browse files · 1 file+4 added−0 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+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:requests/cookies.py+4 added
43 unmodified lines
44 def get_origin_req_host(self):45 return self.get_host()4647 def get_full_url(self):48 # Only return the response's URL if the user hadn't set the Host49 # header50 if not self._r.headers.get('Host'):51 return self._r.url52 # If they did set it, retrieve it and reconstruct the expected doain53 host = self._r.headers['Host']54 parsed = urlparse(self._r.url)55 # Reconstruct the URL as we expect it56 return urlunparse([57 parsed.scheme, host, parsed.path, parsed.params, parsed.query,58 parsed.fragment59 ])
358 unmodified lines