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
1 changed files with 1 additions and 1 deletions

View File

@ -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():