1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Allow POST

This commit is contained in:
Florent Daigniere 2022-03-14 16:34:54 +01:00
parent 2cfde6eacd
commit c50750054b

View File

@ -40,7 +40,7 @@ def autoconfig_mozilla():
</clientConfig>\r\n''' </clientConfig>\r\n'''
return flask.Response(xml, mimetype='text/xml', status=200) return flask.Response(xml, mimetype='text/xml', status=200)
@internal.route("/autoconfig/microsoft") @internal.route("/autoconfig/microsoft", methods=['GET', 'POST'])
def autoconfig_microsoft(): def autoconfig_microsoft():
# https://docs.microsoft.com/en-us/previous-versions/office/office-2010/cc511507(v=office.14)?redirectedfrom=MSDN#Anchor_3 # https://docs.microsoft.com/en-us/previous-versions/office/office-2010/cc511507(v=office.14)?redirectedfrom=MSDN#Anchor_3
hostname = app.config['HOSTNAME'] hostname = app.config['HOSTNAME']