* assign app before handle_request so that request.app could be used in case of connection timeout * gitignore pip-wheel-metadata/ * remove default app for request class and fix lint issue
This commit is contained in:
@@ -95,11 +95,11 @@ class Request(dict):
|
||||
"version",
|
||||
)
|
||||
|
||||
def __init__(self, url_bytes, headers, version, method, transport):
|
||||
def __init__(self, url_bytes, headers, version, method, transport, app):
|
||||
self.raw_url = url_bytes
|
||||
# TODO: Content-Encoding detection
|
||||
self._parsed_url = parse_url(url_bytes)
|
||||
self.app = None
|
||||
self.app = app
|
||||
|
||||
self.headers = headers
|
||||
self.version = version
|
||||
|
||||
Reference in New Issue
Block a user