Fixed missing initializations in WSGIRequest. Refs #20619
This commit is contained in:
parent
7d0c3b9b26
commit
48ce167d89
|
@ -103,6 +103,7 @@ class WSGIRequest(http.HttpRequest):
|
||||||
content_length = 0
|
content_length = 0
|
||||||
self._stream = LimitedStream(self.environ['wsgi.input'], content_length)
|
self._stream = LimitedStream(self.environ['wsgi.input'], content_length)
|
||||||
self._read_started = False
|
self._read_started = False
|
||||||
|
self.resolver_match = None
|
||||||
|
|
||||||
def _is_secure(self):
|
def _is_secure(self):
|
||||||
return 'wsgi.url_scheme' in self.environ and self.environ['wsgi.url_scheme'] == 'https'
|
return 'wsgi.url_scheme' in self.environ and self.environ['wsgi.url_scheme'] == 'https'
|
||||||
|
|
|
@ -39,6 +39,10 @@ class HttpRequest(object):
|
||||||
_upload_handlers = []
|
_upload_handlers = []
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
# WARNING: The `WSGIRequest` subclass doesn't call `super`.
|
||||||
|
# Any variable assignment made here should also happen in
|
||||||
|
# `WSGIRequest.__init__()`.
|
||||||
|
|
||||||
self.GET, self.POST, self.COOKIES, self.META, self.FILES = {}, {}, {}, {}, {}
|
self.GET, self.POST, self.COOKIES, self.META, self.FILES = {}, {}, {}, {}, {}
|
||||||
self.path = ''
|
self.path = ''
|
||||||
self.path_info = ''
|
self.path_info = ''
|
||||||
|
|
Loading…
Reference in New Issue