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.
This commit is contained in:
Agniva De Sarker
2020-02-05 09:06:17 +05:30
committed by GitHub
parent 720de2bec3
commit a986aeb401

View File

@@ -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))))