mirror of
https://github.com/EDCD/EDDN.git
synced 2026-12-02 02:25:13 +03:00
Gateway: Make the CORS apply() static
Quietens a PyCharm warning
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -351,7 +351,8 @@ class EnableCors(object):
|
||||
name = 'enable_cors'
|
||||
api = 2
|
||||
|
||||
def apply(self, fn, context):
|
||||
@staticmethod
|
||||
def apply(fn, context):
|
||||
"""
|
||||
Apply CORS headers to the calling bottle app.
|
||||
|
||||
|
||||
Reference in new issue
Block a user