master
Florent Daigniere 3 years ago
parent c6c444cfa7
commit 14931c4acd

@ -45,8 +45,8 @@ def autoconfig_microsoft_json():
proto = flask.request.args.get('Protocol', 'Autodiscoverv1') proto = flask.request.args.get('Protocol', 'Autodiscoverv1')
if proto == 'Autodiscoverv1': if proto == 'Autodiscoverv1':
hostname = app.config['HOSTNAME'] hostname = app.config['HOSTNAME']
json = f'{"Protocol":"Autodiscoverv1","Url":"https://{hostname}/autodiscover/autodiscover.xml"}' json = f'"Protocol":"Autodiscoverv1","Url":"https://{hostname}/autodiscover/autodiscover.xml"'
return flask.Response(json, mimetype='application/json', status=200) return flask.Response('{'+json+'}', mimetype='application/json', status=200)
else: else:
return flask.abort(404) return flask.abort(404)

Loading…
Cancel
Save