mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-02-11 17:35:00 +00:00
Update server.py
This commit is contained in:
parent
acab9b3d5a
commit
259a1674e5
|
@ -490,7 +490,7 @@ class Extension():
|
|||
@classmethod
|
||||
def get_rpcmethod(cls, method):
|
||||
for extension in cls.extensions:
|
||||
if extension.type == "rpcmethod" and (method in extension.methods):
|
||||
if extension.type == "rpcmethod" and ( (method == extension.method) or (method in extension.methods) ):
|
||||
return extension
|
||||
return None
|
||||
|
||||
|
@ -524,13 +524,14 @@ class Extension():
|
|||
|
||||
def __init__(self):
|
||||
self.type = None
|
||||
self.method = None
|
||||
self.methods = []
|
||||
self.connection_type = None
|
||||
|
||||
def test(self, filtered, data, webserver, port, scheme, method, url):
|
||||
raise NotImplementedError
|
||||
|
||||
def dispatch(self, type, id, params, method, conn = None):
|
||||
def dispatch(self, type, id, params, conn = None, method = None):
|
||||
raise NotImplementedError
|
||||
|
||||
def connect(self, conn, data, webserver, port, scheme, method, url):
|
||||
|
|
Loading…
Reference in New Issue
Block a user