From a5e8f68be44ec625aa3e69dd47d0d442b014de73 Mon Sep 17 00:00:00 2001 From: Eric Bower Date: Thu, 27 Feb 2025 10:47:39 -0500 Subject: [PATCH] chore(pgs): zip and rar content type --- shared/storage/proxy.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/storage/proxy.go b/shared/storage/proxy.go index 42ef9574..b2ba1712 100644 --- a/shared/storage/proxy.go +++ b/shared/storage/proxy.go @@ -86,6 +86,10 @@ func GetMimeType(fpath string) string { return "application/vnd.ms-fontobject" } else if ext == ".yml" || ext == ".yaml" { return "text/x-yaml" + } else if ext == ".zip" { + return "application/zip" + } else if ext == ".rar" { + return "application/vnd.rar" } else if ext == ".txt" { return "text/plain" }