diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 2f8f0add430c..0b23d8b6461c 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -1912,7 +1912,7 @@ protected static function initializeFormats(): void 'css' => ['text/css'], 'json' => ['application/json', 'application/x-json'], 'jsonld' => ['application/ld+json'], - 'xml' => ['text/xml', 'application/xml', 'application/x-xml'], + 'xml' => ['text/xml', 'application/xml', 'application/x-xml', 'application/soap+xml'], 'rdf' => ['application/rdf+xml'], 'atom' => ['application/atom+xml'], 'rss' => ['application/rss+xml'], diff --git a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php index 62284e725cdc..394880ed084e 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php @@ -528,7 +528,7 @@ public static function getFormatToMimeTypeMapProvider() ['css', ['text/css']], ['json', ['application/json', 'application/x-json']], ['jsonld', ['application/ld+json']], - ['xml', ['text/xml', 'application/xml', 'application/x-xml']], + ['xml', ['text/xml', 'application/xml', 'application/x-xml', 'application/soap+xml']], ['rdf', ['application/rdf+xml']], ['atom', ['application/atom+xml']], ['form', ['application/x-www-form-urlencoded', 'multipart/form-data']], pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy