Monitor: Make EnableCors.apply() static

This commit is contained in:
Athanasius 2021-11-04 14:26:36 +00:00
parent 07e332ff61
commit 06e9442bea
No known key found for this signature in database
GPG Key ID: 8C392035DD80FD62

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.