Fixed non threadsafe code
This commit is contained in:
parent
8095f31772
commit
c2f2c16892
19 changed files with 32 additions and 20 deletions
|
|
@ -82,7 +82,11 @@ class BaseResponse(_TemplateEnvironmentMixin):
|
|||
default_region = 'us-east-1'
|
||||
region_regex = r'\.(.+?)\.amazonaws\.com'
|
||||
|
||||
def dispatch(self, request, full_url, headers):
|
||||
@classmethod
|
||||
def dispatch(cls, *args, **kwargs):
|
||||
return cls()._dispatch(*args, **kwargs)
|
||||
|
||||
def _dispatch(self, request, full_url, headers):
|
||||
querystring = {}
|
||||
|
||||
if hasattr(request, 'body'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue