Monitor: Make EnableCors.apply() static

This commit is contained in:
Athanasius 2021-11-04 14:26:36 +00:00
parent 0400854390
commit 1c245735fd

View File

@ -284,7 +284,8 @@ class EnableCors(object):
name = 'enable_cors'
api = 2
def apply(self, fn, context):
@staticmethod
def apply(fn, context):
"""
Apply a CORS handler.