Skip to content

Commit 861a84e

Browse files
committed
minor symfony#58767 [Messenger] use official YAML media type (dunglas)
This PR was merged into the 7.2 branch. Discussion ---------- [Messenger] use official YAML media type | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | n/a | License | MIT YAML is now a RFC and has an official media type: https://www.rfc-editor.org/rfc/rfc9512.html#name-media-type-application-yaml However, this kind be a BC break, so I'm not sure if this should target 6.4 or 7.2. Commits ------- 7b0cc17 [Messenger] use official YAML media type
2 parents 2f57eaf + 7b0cc17 commit 861a84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Transport/Serialization/Serializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private function getMimeTypeForFormat(): ?string
173173
'json' => 'application/json',
174174
'xml' => 'application/xml',
175175
'yml',
176-
'yaml' => 'application/x-yaml',
176+
'yaml' => 'application/yaml',
177177
'csv' => 'text/csv',
178178
default => null,
179179
};

0 commit comments

Comments
 (0)