summaryrefslogtreecommitdiffstats
path: root/module/remote
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote')
-rw-r--r--module/remote/RequestHandler.py6
-rw-r--r--module/remote/RequestObject.py1
2 files changed, 3 insertions, 4 deletions
diff --git a/module/remote/RequestHandler.py b/module/remote/RequestHandler.py
index 5d39623c3..7fa85abe1 100644
--- a/module/remote/RequestHandler.py
+++ b/module/remote/RequestHandler.py
@@ -29,9 +29,9 @@ class RequestHandler:
if obj.command == "exec":
func = getattr(self.core, obj.function)
- obj.response = func( * obj.args)
+ obj.data = func( * obj.args)
else:
- obj.response = "error happend"
+ obj.data = "error happend"
return self.encrypt(obj)
@@ -61,4 +61,4 @@ class RequestHandler:
enc_str = self.bf.encrypt(enc_str)
enc_str = base64.standard_b64encode(enc_str)
- return enc_str + "\n" \ No newline at end of file
+ return enc_str + "\n"
diff --git a/module/remote/RequestObject.py b/module/remote/RequestObject.py
index 0141b5e1d..54ea837a6 100644
--- a/module/remote/RequestObject.py
+++ b/module/remote/RequestObject.py
@@ -15,5 +15,4 @@ class RequestObject(object):
self.command = None
self.function = ""
self.args = []
- self.response = None
self.data = None