diff --git a/http.go b/http.go index b2b0e6b..ed80825 100644 --- a/http.go +++ b/http.go @@ -232,6 +232,7 @@ var mimeExtensions = map[string]string{ "xhtml": "application/xhtml+xml", "xspf": "application/xspf+xml", "zip": "application/zip", + "zst": "application/zstd", "bin": "application/octet-stream", "exe": "application/octet-stream", "dll": "application/octet-stream", diff --git a/http_test.go b/http_test.go index d826bfc..f960d7b 100644 --- a/http_test.go +++ b/http_test.go @@ -26,6 +26,12 @@ func Test_GetMIME(t *testing.T) { res = GetMIME("unknown") require.Equal(t, MIMEOctetStream, res) + res = GetMIME(".zst") + require.Equal(t, "application/zstd", res) + + res = GetMIME("zst") + require.Equal(t, "application/zstd", res) + // empty case res = GetMIME("") require.Equal(t, "", res)