From 301770a559f13cefc942e88694a70c8082fbdb30 Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Sat, 5 Sep 2020 22:25:22 +0100 Subject: [PATCH] updates --- komrade/backend/switchboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/komrade/backend/switchboard.py b/komrade/backend/switchboard.py index 521076c..d65197f 100644 --- a/komrade/backend/switchboard.py +++ b/komrade/backend/switchboard.py @@ -79,7 +79,6 @@ class TheSwitchboard(FlaskView, Logger): def get(self,encr_b64_str): - return 'hello?' # first try to get from string to bytes self.log('incoming <--',encr_b64_str) @@ -88,6 +87,7 @@ class TheSwitchboard(FlaskView, Logger): self.log('encr_b64_b',encr_b64_b) encr_b = b64decode(encr_b64_b) self.log('encr_b',encr_b) + return encr_b except UnicodeDecodeError: return OPERATOR_INTERCEPT_MESSAGE @@ -115,5 +115,5 @@ def run_forever(port='8080'): global OPERATOR OPERATOR = TheOperator() app = Flask(__name__) - TheSwitchboard.register(app, route_base='/op/', route_prefix=None) + TheSwitchboard.register(app, route_base='/', route_prefix=None) app.run(debug=True, port=port, host='0.0.0.0') \ No newline at end of file