mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Fix #17272 - Make Request.full_url and Request.get_full_url return same result under all circumstances.
Document the change of Request.full_url to a property.
This commit is contained in:
parent
dc3e6cc452
commit
8307075ce8
4 changed files with 35 additions and 2 deletions
|
@ -275,6 +275,8 @@ class Request:
|
|||
|
||||
@property
|
||||
def full_url(self):
|
||||
if self.fragment:
|
||||
return '{}#{}'.format(self._full_url, self.fragment)
|
||||
return self._full_url
|
||||
|
||||
@full_url.setter
|
||||
|
@ -326,8 +328,6 @@ class Request:
|
|||
return "GET"
|
||||
|
||||
def get_full_url(self):
|
||||
if self.fragment:
|
||||
return '{}#{}'.format(self.full_url, self.fragment)
|
||||
return self.full_url
|
||||
|
||||
def set_proxy(self, host, type):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue