forked from platypush/platypush
Set the correct mimetype on the /execute endpoint
This commit is contained in:
parent
fc3f53f32b
commit
cda64865f3
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue