request.params for API compatability with existing codebase/tests

This commit is contained in:
Tom Christie
2018-10-12 14:35:31 +01:00
parent d524ba3a37
commit 227ee499e4
+1
View File
@@ -32,6 +32,7 @@ class Request(StarletteRequest):
super().__init__(scope, receive=receive)
self.formats = None
self.mimetype = self.headers.get('Content-Type', '')
self.params = dict(self.query_params)
@property
def is_secure(self):