explicitly set js mimetype

This commit is contained in:
Harvey Tindall
2021-02-08 15:25:02 +00:00
parent 218882b7c6
commit d061721f56
2 changed files with 38 additions and 0 deletions
+3
View File
@@ -10,6 +10,7 @@ import (
"io"
"io/ioutil"
"log"
"mime"
"net"
"net/http"
"os"
@@ -569,6 +570,8 @@ func start(asDaemon, firstCall bool) {
}
cssHeader = app.loadCSSHeader()
mime.AddExtensionType(".js", "application/javascript")
app.info.Println("Loading routes")
if debugMode {
gin.SetMode(gin.DebugMode)