From 64d0bb603d168129b598f4d7bb7aa789b034066a Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Sun, 22 Dec 2024 16:40:44 +0100 Subject: [PATCH] Ensure mobileconfig has the right content-type --- core/admin/mailu/internal/views/autoconfig.py | 2 +- towncrier/newsfragments/3690.bugfix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 towncrier/newsfragments/3690.bugfix diff --git a/core/admin/mailu/internal/views/autoconfig.py b/core/admin/mailu/internal/views/autoconfig.py index bf116f4b..46d6531f 100644 --- a/core/admin/mailu/internal/views/autoconfig.py +++ b/core/admin/mailu/internal/views/autoconfig.py @@ -180,4 +180,4 @@ def autoconfig_apple(): 1 \r\n''' - return flask.Response(xml, mimetype='text/xml', status=200) + return flask.Response(xml, content_type='application/x-apple-aspen-config', status=200) diff --git a/towncrier/newsfragments/3690.bugfix b/towncrier/newsfragments/3690.bugfix new file mode 100644 index 00000000..bcbd3dbf --- /dev/null +++ b/towncrier/newsfragments/3690.bugfix @@ -0,0 +1 @@ +Ensure the apple mobileconfig is served with the appropriate content-type