explicitly set js mimetype
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user