Update server.py

This commit is contained in:
Namhyeon Go 2024-03-06 15:51:15 +09:00 committed by GitHub
parent a9c0ab559f
commit 538cea5e84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -488,7 +488,7 @@ class Extension():
@classmethod
def get_rpcmethod(cls, method):
for extension in cls.extensions:
is_exported_method = (method == extension.method) or (method in extension.methods)
is_exported_method = (method == extension.method) or (method in extension.exported_methods)
if extension.type == "rpcmethod" and is_exported_method:
return extension
return None
@ -535,7 +535,7 @@ class Extension():
def __init__(self):
self.type = None
self.method = None
self.methods = []
self.exported_methods = []
self.connection_type = None
def test(self, filtered, data, webserver, port, scheme, method, url):