Skip to content

Commit

Permalink
EBR-30 Fix type JSON in http response header
Browse files Browse the repository at this point in the history
  • Loading branch information
liadomide committed Jun 20, 2024
1 parent 22af3d7 commit bbe9b0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tvb_framework/tvb/interfaces/web/run_landing_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

import os
import json
from flask import Flask, render_template
from flask import Flask, render_template, jsonify
from gevent.pywsgi import WSGIServer
from tvb.basic.logger.builder import get_logger

Expand Down Expand Up @@ -97,7 +97,7 @@ def about():
SERVICE_META_FILE = os.path.join(os.path.dirname(__file__), 'servicemeta.json')
with open(SERVICE_META_FILE, 'r') as f:
data = json.load(f)
return json.dumps(data)
return jsonify(data)


if __name__ == '__main__':
Expand Down

0 comments on commit bbe9b0c

Please sign in to comment.