Fix content type for config.js
parent
70538783d8
commit
750be7f07e
|
@ -340,7 +340,7 @@ func (s *Server) handleWebConfig(w http.ResponseWriter, r *http.Request) error {
|
||||||
appRoot = "/app"
|
appRoot = "/app"
|
||||||
}
|
}
|
||||||
disallowedTopicsStr := `"` + strings.Join(disallowedTopics, `", "`) + `"`
|
disallowedTopicsStr := `"` + strings.Join(disallowedTopics, `", "`) + `"`
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "text/javascript")
|
||||||
_, err := io.WriteString(w, fmt.Sprintf(`// Generated server configuration
|
_, err := io.WriteString(w, fmt.Sprintf(`// Generated server configuration
|
||||||
var config = {
|
var config = {
|
||||||
appRoot: "%s",
|
appRoot: "%s",
|
||||||
|
|
Loading…
Reference in New Issue