repos / pico

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

commit
877ce1a
parent
e9ab060
author
Eric Bower
date
2024-03-05 05:17:00 +0000 UTC
feat(pgs): add `.wasm` to allowlist
2 files changed,  +3, -0
M pgs/config.go
+1, -0
1@@ -80,6 +80,7 @@ func NewConfigSite() *shared.ConfigSite {
2 				".mp3",
3 				".mp4",
4 				".mpeg",
5+				".wasm",
6 			},
7 			MaxSize:       maxSize,
8 			MaxAssetSize:  maxAssetSize,
M shared/storage/proxy.go
+2, -0
1@@ -72,6 +72,8 @@ func GetMimeType(fpath string) string {
2 		return "video/mp4"
3 	} else if ext == ".mpeg" {
4 		return "video/mpeg"
5+	} else if ext == ".wasm" {
6+		return "application/wasm"
7 	} else if ext == ".txt" {
8 		return "text/plain"
9 	}