repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
58da36f
parent
a50da56
author
Eric Bower
date
2024-03-21 15:30:41 +0000 UTC
feat(pgs): support `.xsl`

Closes: https://github.com/picosh/pico/issues/105
2 files changed,  +3, -0
M pgs/config.go
+1, -0
1@@ -81,6 +81,7 @@ func NewConfigSite() *shared.ConfigSite {
2 				".mp4",
3 				".mpeg",
4 				".wasm",
5+				".xsl",
6 			},
7 			MaxSize:       maxSize,
8 			MaxAssetSize:  maxAssetSize,
M shared/storage/proxy.go
+2, -0
1@@ -56,6 +56,8 @@ func GetMimeType(fpath string) string {
2 		return "application/manifest+json"
3 	} else if ext == ".xml" {
4 		return "application/xml"
5+	} else if ext == ".xsl" {
6+		return "application/xml"
7 	} else if ext == ".avif" {
8 		return "image/avif"
9 	} else if ext == ".heif" {