hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit cd44d409baa2ec7d2a9e28a700b1f0bb6dfb7520
parent 9a326d5636951ee79ec930ec15c173704b0531d8
Author: Paul van Brouwershaven <vanbroup@users.noreply.github.com>
Date:   Fri,  3 Dec 2021 12:45:49 +0100

media: Add rss suffix for application/rss+xml

Closes #9233
Diffstat:
Mmedia/mediaType.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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"})