diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2021-04-29 14:35:11 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-04-30 08:05:42 +0200 |
| commit | 8bcb00858e0ddec79cc96669c238d29c30d7effb (patch) | |
| tree | cba5b4df1cd188543adc523ccedfead1ac26075d /django/http/request.py | |
| parent | ca34db46504fca1221e27f6ab13734dfdfde6e1c (diff) | |
Fixed #32698 -- Moved HttpRequest.get_raw_uri() to ExceptionReporter._get_raw_insecure_uri().
Diffstat (limited to 'django/http/request.py')
| -rw-r--r-- | django/http/request.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/django/http/request.py b/django/http/request.py index 79fc8350fd..c7922e59e9 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -180,17 +180,6 @@ class HttpRequest: raise return value - def get_raw_uri(self): - """ - Return an absolute URI from variables available in this request. Skip - allowed hosts protection, so may return insecure URI. - """ - return '{scheme}://{host}{path}'.format( - scheme=self.scheme, - host=self._get_raw_host(), - path=self.get_full_path(), - ) - def build_absolute_uri(self, location=None): """ Build an absolute URI from the location and the variables available in |
