repos / pico

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

commit
395c5eb
parent
b1eaa39
author
Eric Bower
date
2024-03-31 19:17:43 +0000 UTC
feat(pgs): add opml to allowlist
2 files changed,  +3, -0
M pgs/config.go
+1, -0
1@@ -87,6 +87,7 @@ func NewConfigSite() *shared.ConfigSite {
2 				".mpeg",
3 				".wasm",
4 				".xsl",
5+				".opml",
6 			},
7 			MaxSize:       maxSize,
8 			MaxAssetSize:  maxAssetSize,
M shared/storage/proxy.go
+2, -0
1@@ -76,6 +76,8 @@ func GetMimeType(fpath string) string {
2 		return "video/mpeg"
3 	} else if ext == ".wasm" {
4 		return "application/wasm"
5+	} else if ext == ".opml" {
6+		return "text/x-opml"
7 	} else if ext == ".txt" {
8 		return "text/plain"
9 	}