diff --git a/core/admin/mailu/internal/views/autoconfig.py b/core/admin/mailu/internal/views/autoconfig.py index 85d3dbb0..d68d07bc 100644 --- a/core/admin/mailu/internal/views/autoconfig.py +++ b/core/admin/mailu/internal/views/autoconfig.py @@ -45,8 +45,8 @@ def autoconfig_microsoft_json(): proto = flask.request.args.get('Protocol', 'Autodiscoverv1') if proto == 'Autodiscoverv1': hostname = app.config['HOSTNAME'] - json = f'{"Protocol":"Autodiscoverv1","Url":"https://{hostname}/autodiscover/autodiscover.xml"}' - return flask.Response(json, mimetype='application/json', status=200) + json = f'"Protocol":"Autodiscoverv1","Url":"https://{hostname}/autodiscover/autodiscover.xml"' + return flask.Response('{'+json+'}', mimetype='application/json', status=200) else: return flask.abort(404)