From 4be1ed73b2ec6520bce8dc5677823f21debb2798 Mon Sep 17 00:00:00 2001 From: bryk Date: Tue, 29 Nov 2016 09:09:30 +0100 Subject: [PATCH] Set content type on app config handler Fixes: #1497 --- src/app/backend/handler/confighandler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/backend/handler/confighandler.go b/src/app/backend/handler/confighandler.go index da50cc7469d..2867288f87c 100644 --- a/src/app/backend/handler/confighandler.go +++ b/src/app/backend/handler/confighandler.go @@ -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