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:
Senthil Kumaran 2013-05-24 09:14:12 -07:00
parent dc3e6cc452
commit 8307075ce8
4 changed files with 35 additions and 2 deletions

View file

@ -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):