From 87997e88b5c99c439f164c766840c94822e5b8b0 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tim.dijen@minbzk.nl> Date: Mon, 5 Apr 2021 01:23:47 +0200 Subject: [PATCH] Properly set MIME-type If the publishing protocol permits MIME-based identification of content types, the content typeof the metadata instance MUST be application/samlmetadata+xml. --- www/saml2/idp/metadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/saml2/idp/metadata.php b/www/saml2/idp/metadata.php index d6511a4d9..2f6807e8e 100644 --- a/www/saml2/idp/metadata.php +++ b/www/saml2/idp/metadata.php @@ -244,7 +244,7 @@ try { $t->data['metadataflat'] = htmlspecialchars($metaflat); $t->send(); } else { - header('Content-Type: application/xml'); + header('Content-Type: application/samlmetadata+xml'); echo $metaxml; exit(0); -- GitLab