From 14931c4acddb2448a9ed9b051d4a9ed71b6752f3 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Wed, 16 Mar 2022 14:14:03 +0100 Subject: [PATCH] doh --- core/admin/mailu/internal/views/autoconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)