Skip to content

Commit

Permalink
chore(pgs): zip and rar content type
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Feb 27, 2025
1 parent 4ae5b1a commit a5e8f68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/storage/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit a5e8f68

Please sign in to comment.