提交 c8ee2b6f 编写于 作者: P Piotr Bryk 提交者: Rob Franken

Set content type on app config handler (#1499)

Fixes: #1497
上级 e9e86b16
......@@ -61,6 +61,7 @@ func getAppConfigJSON() string {
func ConfigHandler(w http.ResponseWriter, r *http.Request) (int, error) {
template, err := template.New(ConfigTemplateName).Parse(ConfigTemplate)
w.Header().Set("Content-Type", "application/javascript")
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return http.StatusInternalServerError, err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册