From f6a20464f58f705e4d545a33ecf828921a0f0b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Bj=C3=B8rn=20Andersen?= <61787754+jesperbjoernandersen@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:40:18 +0200 Subject: [PATCH 1/3] Added soap+xml to formats Many soap web services use application/soap+xml as content-type. This will make getContentTypeFormat() return 'xml' instead of null --- src/Symfony/Component/HttpFoundation/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 2f8f0add430ca..0b23d8b6461c8 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'], From 86eec577caa143f4a592a3ba0fa82b3242793149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Bj=C3=B8rn=20Andersen?= <61787754+jesperbjoernandersen@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:42:38 +0200 Subject: [PATCH 2/3] Update RequestTest.php --- src/Symfony/Component/HttpFoundation/Tests/RequestTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php index 62284e725cdcb..6db4361e73d18 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/x-xml', 'application/soap+xml']], ['rdf', ['application/rdf+xml']], ['atom', ['application/atom+xml']], ['form', ['application/x-www-form-urlencoded', 'multipart/form-data']], From efbdeb170a9caea52be64731b6a0beeb56eaf4cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Bj=C3=B8rn=20Andersen?= <61787754+jesperbjoernandersen@users.noreply.github.com> Date: Wed, 30 Jul 2025 14:51:32 +0200 Subject: [PATCH 3/3] Fixed $ typo Mistakenly replaced 'application/xml' with '$'. That has been corrected --- src/Symfony/Component/HttpFoundation/Tests/RequestTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php index 6db4361e73d18..394880ed084ea 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/x-xml', 'application/soap+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