diff --git a/internal/ctype/ctypes.go b/internal/ctype/ctypes.go index 0397aff..b011594 100644 --- a/internal/ctype/ctypes.go +++ b/internal/ctype/ctypes.go @@ -195,6 +195,7 @@ var ctypes = []struct { {[]string{".srt"}, nil, "application/x-subrip"}, {[]string{".sql"}, nil, "application/sql"}, {[]string{".tgz"}, nil, "application/x-gzip"}, + {[]string{".wasm"}, nil, "application/wasm"}, } func GetContentTypeForFilename(name string) string { diff --git a/internal/ctype/ctypes_test.go b/internal/ctype/ctypes_test.go index 145637f..d0237c9 100644 --- a/internal/ctype/ctypes_test.go +++ b/internal/ctype/ctypes_test.go @@ -51,6 +51,10 @@ func Test_getContentTypeForExtension(t *testing.T) { filename: "Makefile", want: "text/x-makefile", }, + { + filename: ".wasm", + want: "application/wasm", + }, } for _, tt := range tests { t.Run(tt.filename, func(t *testing.T) {