From: Paul van Brouwershaven Date: Fri, 3 Dec 2021 11:45:49 +0000 (+0100) Subject: media: Add rss suffix for application/rss+xml X-Git-Tag: v0.90.0~16 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cd44d409baa2ec7d2a9e28a700b1f0bb6dfb7520;p=brevno-suite%2Fhugo media: Add rss suffix for application/rss+xml Closes #9233 --- diff --git a/media/mediaType.go b/media/mediaType.go index d3f212ad..f63d315d 100644 --- a/media/mediaType.go +++ b/media/mediaType.go @@ -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"})