From a986aeb4011dcbd0a40164e655ce0232e7675891 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 5 Feb 2020 09:06:17 +0530 Subject: [PATCH] Remove explicit application/wasm mimetype (#13804) Go mime sniffer supports the application/wasm mimetype natively now. So there is no need to set this explicitly. --- web/static.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/static.go b/web/static.go index 3c6970689e..ae41c8319c 100644 --- a/web/static.go +++ b/web/static.go @@ -4,7 +4,6 @@ package web import ( - "mime" "net/http" "path" "path/filepath" @@ -31,8 +30,6 @@ func (w *Web) InitStatic() { subpath, _ := utils.GetSubpathFromConfig(w.ConfigService.Config()) - mime.AddExtensionType(".wasm", "application/wasm") - staticHandler := staticFilesHandler(http.StripPrefix(path.Join(subpath, "static"), http.FileServer(http.Dir(staticDir)))) pluginHandler := staticFilesHandler(http.StripPrefix(path.Join(subpath, "static", "plugins"), http.FileServer(http.Dir(*w.ConfigService.Config().PluginSettings.ClientDirectory))))