media: Add rss suffix for application/rss+xml
authorPaul van Brouwershaven <vanbroup@users.noreply.github.com>
Fri, 3 Dec 2021 11:45:49 +0000 (12:45 +0100)
committerGitHub <noreply@github.com>
Fri, 3 Dec 2021 11:45:49 +0000 (12:45 +0100)
Closes #9233

media/mediaType.go

index d3f212ad32316dad6a31a3d67ff46dfe9b20196a..f63d315d0cdfcdc72ab8dc95ae92e87572aec320 100644 (file)
@@ -168,7 +168,7 @@ var (
 
        JSONType           = newMediaType("application", "json", []string{"json"})
        WebAppManifestType = newMediaTypeWithMimeSuffix("application", "manifest", "json", []string{"webmanifest"})
-       RSSType            = newMediaTypeWithMimeSuffix("application", "rss", "xml", []string{"xml"})
+       RSSType            = newMediaTypeWithMimeSuffix("application", "rss", "xml", []string{"xml", "rss"})
        XMLType            = newMediaType("application", "xml", []string{"xml"})
        SVGType            = newMediaTypeWithMimeSuffix("image", "svg", "xml", []string{"svg"})
        TextType           = newMediaType("text", "plain", []string{"txt"})