summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.py b/main.py
index ec404239..3dbb2a53 100644
--- a/main.py
+++ b/main.py
@@ -142,7 +142,9 @@ def api_call(version, endpoint_path):
)
sys.stdout.flush()
- return jsonify(json.loads(response.to_JSON()))
+ flask_response = jsonify(json.loads(response.to_JSON()))
+ flask_response.status_code = response.status['code']
+ return flask_response
@SOCKET_IO_CORE.on('request')
def receive_message(message):