mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 09:51:06 +00:00
Update server.py
This commit is contained in:
parent
4eab93a5ef
commit
d0d640ec72
|
@ -495,9 +495,9 @@ class Extension():
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_connector(cls, method):
|
def get_connector(cls, connection_type):
|
||||||
for extension in cls.extensions:
|
for extension in cls.extensions:
|
||||||
if extension.type == "connector" and extension.method == method:
|
if extension.type == "connector" and extension.connection_type = connection_type:
|
||||||
return extension
|
return extension
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -523,8 +523,9 @@ class Extension():
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.type = ""
|
self.type = None
|
||||||
self.method = ""
|
self.method = None
|
||||||
|
self.connection_type = None
|
||||||
|
|
||||||
def test(self, filtered, data, webserver, port, scheme, method, url):
|
def test(self, filtered, data, webserver, port, scheme, method, url):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
Loading…
Reference in New Issue
Block a user