Set the correct mimetype on the /execute endpoint

This commit is contained in:
Fabio Manganiello 2018-11-09 23:43:47 +01:00
parent fc3f53f32b
commit cda64865f3

View file

@ -252,7 +252,7 @@ class HttpBackend(Backend):
response = self.get_message_response(msg) response = self.get_message_response(msg)
self.logger.info('Processing response on the HTTP backend: {}'.format(response)) self.logger.info('Processing response on the HTTP backend: {}'.format(response))
if response: if response:
return str(response) return Response(str(response), mimetype='application/json')
@app.route('/') @app.route('/')
def index(): def index():