From cda64865f3770e9e1462c68d6a731c40252b7ae9 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 9 Nov 2018 23:43:47 +0100 Subject: [PATCH] Set the correct mimetype on the /execute endpoint --- platypush/backend/http/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/http/__init__.py b/platypush/backend/http/__init__.py index 00e6a40d..cb825f65 100644 --- a/platypush/backend/http/__init__.py +++ b/platypush/backend/http/__init__.py @@ -252,7 +252,7 @@ class HttpBackend(Backend): response = self.get_message_response(msg) self.logger.info('Processing response on the HTTP backend: {}'.format(response)) if response: - return str(response) + return Response(str(response), mimetype='application/json') @app.route('/') def index():