media: Add rss suffix for application/rss+xml - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit cd44d409baa2ec7d2a9e28a700b1f0bb6dfb7520
DIR parent 9a326d5636951ee79ec930ec15c173704b0531d8
HTML 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:
M media/mediaType.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR 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"})